login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A137474 Prime numbers n such that n^3-(n-1)^2 and n^3+(n-1)^2 are also primes. 0
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; internal format)
OFFSET

1,1

EXAMPLE

n=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) ]; [From Vincenzo Librandi, Nov 24 2010]

CROSSREFS

Sequence in context: A176903 A004060 A028491 * A071087 A038691 A082718

Adjacent sequences:  A137471 A137472 A137473 * A137475 A137476 A137477

KEYWORD

nonn

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), Apr 21 2008

EXTENSIONS

More terms from Vincenzo Librandi (vincenzo.librandi(AT)tin.it), Mar 26 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 14:50 EST 2012. Contains 206050 sequences.