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!)
A242231 Primes p of the form p^2 + q - 1 where p < q are consecutive primes. 2
13, 31, 59, 307, 383, 557, 997, 1409, 1723, 3541, 5113, 5407, 6323, 6977, 8017, 10303, 19469, 52673, 94559, 109897, 151717, 158009, 187927, 193163, 249503, 274069, 326617, 361807, 383791, 419261, 427067, 546863, 573809, 592133, 636017, 684757, 735307, 738743 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(1) = 13 = 3^2 + 5 - 1: 13 is prime, 3 and 5 are consecutive primes.
a(2) = 31 = 5^2 + 7 - 1: 31 is prime, 5 and 7 are consecutive primes.
MAPLE
with(numtheory): A242231:= proc()local k ; k:=(ithprime(x)^2+ithprime(x+1)-1); if isprime(k) then RETURN (k); fi; end: seq(A242231 (), x=1..500);
MATHEMATICA
A242231 = {}; Do[p = Prime[n]^2 + Prime[n + 1] - 1; If[PrimeQ[p], AppendTo[A242231, p]], {n, 500}]; A242231
Select[#[[1]]^2+#[[2]]-1&/@Partition[Prime[Range[250]], 2, 1], PrimeQ] (* Harvey P. Dale, Mar 05 2022 *)
CROSSREFS
Sequence in context: A166143 A065768 A155820 * A330855 A268927 A061239
KEYWORD
nonn
AUTHOR
K. D. Bajpai, May 08 2014
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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)