OFFSET
1,1
COMMENTS
These are the primes in A162862.
LINKS
Jon E. Schoenfield, Table of n, a(n) for n = 1..10000
EXAMPLE
5^10 + 5^9 + 5^8 + 5^7 + 5^6 + 5^5 + 5^4 + 5^3 + 5^2 + 5 + 1 = 12207031 is prime. Thus, 5 is a term of this sequence.
MATHEMATICA
Select[Prime[Range[200]], PrimeQ[1 + Sum[#^i, {i, 10}]] &] (* Alonso del Arte, Apr 11 2014 *)
Select[Prime[Range[900]], PrimeQ[Total[#^Range[0, 10]]]&] (* Harvey P. Dale, Oct 11 2023 *)
PROG
(PARI) for(n=1, 10^4, if(ispseudoprime(n^10+n^9+n^8+n^7+n^6+n^5+n^4+n^3+n^2+n+1)&&ispseudoprime(n), print(n)))
(Python)
import sympy
from sympy import isprime
{print(n) for n in range(10**4) if isprime(n) and isprime(n**10+n**9+n**8+n**7+n**6+n**5+n**4+n**3+n**2+n+1)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Apr 10 2014
STATUS
approved