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
2, 4, 6, 12, 18, 18, 18, 24, 26, 40, 42, 48, 42, 60, 52, 56, 60, 90, 102, 72, 78, 84, 90, 90, 114, 102, 114, 112, 126, 122, 138, 132, 140, 156, 154, 192, 174, 174, 168, 174, 196, 192, 212, 234, 206, 216, 240, 246, 230, 264, 240, 264, 282, 260, 260, 272 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
f:= proc(n) local p, m;
p:= ithprime(n);
for m from p+1 by 2 do if isprime(m^2-p) then return m fi od:
end proc:
f(1):=2:
map(f, [$1..100]); # Robert Israel, Dec 14 2017
MATHEMATICA
Table[m = p = Prime[n]; While[! PrimeQ[m^2 - p], m++]; m, {n, 60}] (* slightly modified by Robert G. Wilson v, Dec 14 2017 *)
PROG
(PARI) vector(100, n, m=prime(n); while(!isprime(m^2-prime(n)), m++); m)
CROSSREFS
Sequence in context: A018189 A239954 A332640 * A325283 A167706 A331091
KEYWORD
nonn
AUTHOR
Zak Seidov, Dec 13 2017
STATUS
approved

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 March 28 05:02 EDT 2024. Contains 371235 sequences. (Running on oeis4.)