login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Primes p such that p + m^2 is prime for all m in {2,4,6,8,10,12,14,16}.
5

%I #22 Sep 09 2014 20:44:28

%S 37,163,56893,409333,1483087,1867783,10101463,18292957,31284493,

%T 52896517,58048057,157861663,175933717,180336193,222640867,258001837,

%U 276739747,349693117,371305267,445890307,543764323,613305067,678551833,748576753,828497443

%N Primes p such that p + m^2 is prime for all m in {2,4,6,8,10,12,14,16}.

%C Primes p such that p + m^2, m = 2,4,6,8,10,12,14,16,18 are all primes:

%C 163, 409333, 1483087, 1867783, 222640867, 258001837, 371305267, 748576753, 828497443, 1235054137, ...

%C Primes p such that p + m^2, m = 2,4,6,8,10,12,14,16,18,20 are all primes:

%C 163, 409333, 828497443, ...

%H Zak Seidov and Jens Kruse Andersen, <a href="/A246842/b246842.txt">Table of n, a(n) for n = 1..10000</a> (first 34 terms from Zak Seidov)

%o (PARI) s=[]; forprime(p=2, 10e9, forstep(i=2, 16, 2, if(!isprime(p+i^2), next(2))); s=concat(s, p)); s \\ _Colin Barker_, Sep 05 2014

%Y Cf. A049492, A092120.

%K nonn

%O 1,1

%A _Zak Seidov_, Sep 05 2014

%E Typos in data and comments fixed by _Colin Barker_, Sep 05 2014