OFFSET
1,2
COMMENTS
LINKS
R. J. Cano, Table of n, a(n) for n = 1..10000
Bernard Schott, Les nombres brésiliens, Quadrature, no. 76, avril-juin 2010, pages 30-38.
EXAMPLE
12 is in the sequence because 12^4 + 12^3 + 12^2 + 12 + 1 = 11111_12 = 22621, which is prime.
MATHEMATICA
Select[Range@ 414, And[! PrimeQ@ #, PrimeQ[Total[#^Range[0, 4]]]] &] (* Michael De Vlieger, May 03 2017 *)
PROG
(PARI) isok(n)=if(n==1, 5, if(ispseudoprime(n), 0, isprime(fromdigits([1, 1, 1, 1, 1], n))));
getfirstterms(n)={my(L:list, c:small); L=List(); c=0; forstep(k=1, +oo, 1, if(isok(k), listput(L, k); if(c++==n, break))); return(Vec(L))} \\ R. J. Cano, May 09 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Bernard Schott, May 02 2017
STATUS
approved