login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A217992
Numbers n such that n^32+1 and (n+2)^32+1 are both prime.
0
112, 428, 430, 1960, 3042, 3496, 5062, 10038, 12294, 15828, 23208, 24116, 24632, 26892, 33368, 35960, 43960, 44140, 53382, 58402, 59610, 72214, 87628, 88036, 90474, 90846, 92678, 92688, 96510, 97766, 97768, 105082, 120116, 128756, 131154, 131882, 142682
OFFSET
1,1
MATHEMATICA
lst={}; Do[p=n^32+1; q=(n+2)^32+1; If[PrimeQ[p] && PrimeQ[q], AppendTo[lst, n]], {n, 0, 150000}]; lst
Select[Range[150000], AllTrue[{#^32+1, (#+2)^32+1}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Aug 07 2016 *)
CROSSREFS
Cf. A006315.
Sequence in context: A203916 A234681 A234674 * A221798 A340574 A189544
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Oct 17 2012
STATUS
approved