A245641 Prime numbers P such that 8*P^2-1 and 24*P^3-1 are also primes.
2, 3, 5, 17, 67, 137, 241, 353, 541, 641, 907, 1033, 1307, 1453, 1607, 1621, 1733, 1811, 2053, 2243, 2273, 2377, 2621, 2963, 3677, 3701, 3881, 3943, 4861, 5261, 5647, 6101, 6823, 7723, 7877, 8081, 8101, 8447, 8923, 9467, 10111, 10223, 11483, 11617, 12161, 12203, 12227, 12457
Offset: 1
Keywords
Links
- Pierre CAMI, Table of n, a(n) for n = 1..10000
Programs
-
Magma
[p: p in PrimesUpTo(15000)| IsPrime(8*p^2-1)and IsPrime(24*p^3-1)]; // Vincenzo Librandi, Sep 08 2014
-
Mathematica
Select[Prime[Range[2000]], PrimeQ[8 #^2 - 1] && PrimeQ[24 #^3 - 1] &] (* Vincenzo Librandi, Sep 08 2014 *)
-
PARI
select(p->isprime(8*p^2-1)&&isprime(24*p^3-1), primes(3000)) \\ Colin Barker, Jul 28 2014
Comments