The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A296505 The least number m not less than the n-th prime p such that m^2 - p is prime. 0

%I #11 Dec 17 2017 22:15:25

%S 2,4,6,12,18,18,18,24,26,40,42,48,42,60,52,56,60,90,102,72,78,84,90,

%T 90,114,102,114,112,126,122,138,132,140,156,154,192,174,174,168,174,

%U 196,192,212,234,206,216,240,246,230,264,240,264,282,260,260,272

%N The least number m not less than the n-th prime p such that m^2 - p is prime.

%p f:= proc(n) local p,m;

%p p:= ithprime(n);

%p for m from p+1 by 2 do if isprime(m^2-p) then return m fi od:

%p end proc:

%p f(1):=2:

%p map(f, [$1..100]); # _Robert Israel_, Dec 14 2017

%t Table[m = p = Prime[n]; While[! PrimeQ[m^2 - p], m++]; m, {n, 60}] (* slightly modified by _Robert G. Wilson v_, Dec 14 2017 *)

%o (PARI) vector(100,n,m=prime(n);while(!isprime(m^2-prime(n)),m++);m)

%K nonn

%O 1,1

%A _Zak Seidov_, Dec 13 2017

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 16 01:53 EDT 2024. Contains 373412 sequences. (Running on oeis4.)