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.

This page as a plain text file.
%I A066878 #8 Dec 24 2015 23:54:03
%S A066878 6857,29789,50651,300761,1295027,3442949,9393929,13997519,21253931,
%T A066878 49430861,84604517,95443991,237176657,329939369,384240581,487443401,
%U A066878 633839777,904231061,1284365501,1605723209,3183010109,3301293167
%N A066878 Primes of the form p^3 - 2 where p is prime.
%H A066878 Harry J. Smith, <a href="/A066878/b066878.txt">Table of n, a(n) for n = 1..1000</a>
%e A066878 6857 = 19^3 - 2.
%t A066878 Select[Range[1, 10^6], PrimeQ[ # ] && PrimeQ[(# + 2)^(1/3)] &]
%o A066878 (PARI) a(n)=for(X=0,100,if(isprime(prime(X)^3-2),print(prime(X)^3-2)))
%o A066878 (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
%K A066878 easy,nonn
%O A066878 1,1
%A A066878 _Joseph L. Pe_, Jan 21 2002
%E A066878 More terms from Hauke Worpel (hew(AT)email.com), May 23 2003
%E A066878 Terms a(11) - a(22) from _Harry J. Smith_, Apr 03 2010