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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A153014 Primes p such that p^2-2 and p^2-2p+2 are also prime. 0
2, 3, 5, 7, 37, 127, 131, 211, 257, 421, 467, 491, 751, 761, 1307, 1321, 1367, 1567, 1861, 2081, 2087, 2137, 2287, 2381, 2647, 2707, 2837, 2897, 3221, 3851, 3911, 3947, 4957, 5087, 5501, 5711, 5857, 6011, 6217, 6221, 6361, 6637, 6911, 8707, 8941, 9127 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Subsequence of A062326.

EXAMPLE

For p = 2, p^2-2 = 2 and p^2-2p+2 = 2; for prime p = 491, p^2-2 = 241079 is prime and p^2-2p+2 = 240101 is prime.

MATHEMATICA

Select[Prime[Range[1500]], PrimeQ[#^2-2]&&PrimeQ[#^2-2#+2]&]  (* From Harvey P. Dale, Apr 21 2011 *)

PROG

(MAGMA) [ p: p in PrimesUpTo(9200) | IsPrime(p^2-2) and IsPrime(p^2-2*p+2) ];

CROSSREFS

Cf. A062326 (primes p such that p^2-2 is also prime).

Sequence in context: A160748 A117639 A202263 * A100891 A051857 A050654

Adjacent sequences:  A153011 A153012 A153013 * A153015 A153016 A153017

KEYWORD

nonn

AUTHOR

Vincenzo Librandi (vincenzo.librandi(AT)tin.it), Dec 31 2008

EXTENSIONS

Edited, corrected (257 inserted) and extended beyond a(13) by Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Jan 01 2009

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 16 07:10 EST 2012. Contains 205874 sequences.