login
Primes p such that 2p^2-1 and 3p^2-2 are also prime.
8

%I #11 Sep 08 2022 08:46:02

%S 199,311,379,409,419,659,941,1009,1439,2351,2789,3079,3221,4421,4999,

%T 5351,5531,5839,6299,7129,7321,7349,8819,9029,10091,10151,10391,10459,

%U 11131,11551,12251,12391,13049,13759,14281,14669,15091,15329,15581,16381,16811

%N Primes p such that 2p^2-1 and 3p^2-2 are also prime.

%C Subsequence of A106483: a(1)=A106483(19), a(2)=A106483(25),

%C a(3)=A106483(28).

%H Vincenzo Librandi, <a href="/A213078/b213078.txt">Table of n, a(n) for n = 1..1000</a>

%t Select[Prime[Range[2000]], PrimeQ[2 #^2 - 1] && PrimeQ[3 #^2 - 2] &] (* _T. D. Noe_, Jun 06 2012 *)

%o (Magma) [p: p in PrimesUpTo(17000) | IsPrime(2*p^2-1)and IsPrime(3*p^2-2)]; // _Vincenzo Librandi_, Apr 08 2013

%Y Cf. A106483.

%K nonn,easy

%O 1,1

%A _Zak Seidov_, Jun 04 2012