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!)
A225809 Primes p such that p+q+1 is the square of a prime, where q is the next prime after p. 1
3, 11, 59, 139, 179, 419, 919, 1399, 3119, 5099, 6379, 8059, 9377, 16007, 31489, 39461, 60899, 83639, 87767, 92867, 100799, 135719, 161879, 163019, 166457, 179393, 206699, 218459, 229157, 273059, 317599, 338659, 363799, 367219, 389839, 411311, 442733, 491039 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..1000
EXAMPLE
11+13+1=25=5^2 with 5 a prime.
MATHEMATICA
Select[Partition[Prime[Range[41000]], 2, 1], PrimeQ[Sqrt[Total[#]+1]]&][[All, 1]] (* Harvey P. Dale, Apr 17 2022 *)
PROG
(PARI) p=2; forprime(q=3, 1e9, if(issquare(p+q+1, &t)&&isprime(t), print1(p", ")); p=q) \\ Charles R Greathouse IV, Aug 27 2013
(Magma) [p: p in PrimesUpTo(5*10^5) | IsSquare(t) and IsPrime(Isqrt(t)) where t is p+NextPrime(p)+1]; // Bruno Berselli, Aug 28 2013
CROSSREFS
Sequence in context: A107007 A199854 A242384 * A267607 A319248 A340865
KEYWORD
nonn
AUTHOR
J. M. Bergot, Aug 27 2013
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 April 18 03:01 EDT 2024. Contains 371767 sequences. (Running on oeis4.)