OFFSET
1,1
COMMENTS
Corresponding primes 3 + 2*p^2 are congruent to 5 modulo 6.
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..1000
EXAMPLE
2 is in the sequence because 3+2*2^2 = 11 is prime; also, for the comment, 11 = 6+5.
5 is in the sequence because 3+2*5^2 = 53 is prime, also 53 = 6*8+5.
7 is in the sequence because 3+2*7^2 = 101 is prime, also 101 = 6*16+5.
MATHEMATICA
Select[Prime[Range[500]], PrimeQ[3 + 2 #^2] &] (* Bruno Berselli, Jun 07 2014 *)
PROG
(PARI) s=[]; forprime(p=2, 4000, if(isprime(3+2*p^2), s=concat(s, p))); s \\ Colin Barker, Jun 07 2014
(Magma) [p: p in PrimesUpTo(4000) | IsPrime(3+2*p^2)]; // Bruno Berselli, Jun 07 2014
(Sage) [p for p in primes(4000) if is_prime(3+2*p^2)] # Bruno Berselli, Jun 07 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Jun 07 2014
STATUS
approved