cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A066878 Primes of the form p^3 - 2 where p is prime.

Original entry on oeis.org

6857, 29789, 50651, 300761, 1295027, 3442949, 9393929, 13997519, 21253931, 49430861, 84604517, 95443991, 237176657, 329939369, 384240581, 487443401, 633839777, 904231061, 1284365501, 1605723209, 3183010109, 3301293167
Offset: 1

Views

Author

Joseph L. Pe, Jan 21 2002

Keywords

Examples

			6857 = 19^3 - 2.
		

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