login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A137474 Prime numbers p such that p^3 - (p-1)^2 and p^3 + (p-1)^2 are also primes. 1
3, 7, 13, 73, 97, 157, 523, 1483, 1993, 2521, 3967, 5641, 6607, 7717, 8761, 9397, 11821, 11971, 12241, 12613, 13597, 14083, 15511, 16231, 16411, 17203, 17293, 19801, 23143, 23167, 23857, 28123, 29173, 29881, 30391, 31477, 31723, 32323 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Daniel Starodubtsev, Table of n, a(n) for n = 1..10000

EXAMPLE

p=7: 7^3 - (7-1)^2 = 307 is prime and 7^3 + (7-1)^2 = 379 is prime, hence 7 is in the sequence.

MATHEMATICA

Select[Prime[Range[900]], PrimeQ[ #^3-(#-1)^2]&&PrimeQ[ #^3+(#-1)^2]&]

PROG

(MAGMA) [ n: n in PrimesUpTo(40000) | IsPrime(n^3-(n-1)^2) and IsPrime(n^3 +(n-1)^2) ]; // Vincenzo Librandi, Nov 24 2010

CROSSREFS

Sequence in context: A176903 A004060 A028491 * A071087 A309775 A038691

Adjacent sequences:  A137471 A137472 A137473 * A137475 A137476 A137477

KEYWORD

nonn

AUTHOR

Vladimir Joseph Stephan Orlovsky, Apr 21 2008

EXTENSIONS

More terms from Vincenzo Librandi, Mar 26 2010

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 19:31 EDT 2021. Contains 343089 sequences. (Running on oeis4.)