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.

A152294 Primes of the form : (p-n)/(n+1)=prime and (n+1)*p+n=prime. n=4.

Original entry on oeis.org

29, 89, 419, 509, 659, 1259, 1289, 1319, 1949, 2099, 2309, 2339, 2609, 2939, 3989, 4049, 6089, 6599, 7559, 8609, 9239, 9539, 10709, 12659, 12899, 13469, 13499, 18119, 20399, 21089, 21269, 21419, 22469, 23369, 26669, 27539, 28559, 30059, 30449
Offset: 1

Views

Author

Keywords

Comments

This is the general form : (p-n)/(n+1)=primeand(n+1)*p+n=prime; 'Safe' primes and'Sophie Germain' primes just one part of this general form; If n=1 then we got'Safe' primes and'Sophie Germain' primes.

Crossrefs

Programs

  • Mathematica
    lst={};n=4;Do[p=Prime[k];If[PrimeQ[(p-n)/(n+1)]&&PrimeQ[(n+1)*p+n],AppendTo[lst,p]],{k,7!}];lst