A066878 Primes of the form p^3 - 2 where p is prime.
6857, 29789, 50651, 300761, 1295027, 3442949, 9393929, 13997519, 21253931, 49430861, 84604517, 95443991, 237176657, 329939369, 384240581, 487443401, 633839777, 904231061, 1284365501, 1605723209, 3183010109, 3301293167
Offset: 1
Examples
6857 = 19^3 - 2.
Links
- Harry J. Smith, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Select[Range[1, 10^6], PrimeQ[ # ] && PrimeQ[(# + 2)^(1/3)] &]
-
PARI
a(n)=for(X=0,100,if(isprime(prime(X)^3-2),print(prime(X)^3-2)))
-
PARI
{ n=0; for (m=1, 10^10, if(isprime(p=(prime(m)^3 - 2)), write("b066878.txt", n++, " ", p); if (n==1000, return)) ) } \\ Harry J. Smith, Apr 03 2010
Extensions
More terms from Hauke Worpel (hew(AT)email.com), May 23 2003
Terms a(11) - a(22) from Harry J. Smith, Apr 03 2010