A162857 Primes of the form 4p - 1, p a prime.
7, 11, 19, 43, 67, 163, 211, 283, 331, 523, 547, 691, 787, 907, 1051, 1123, 1171, 1531, 1723, 1867, 2011, 2083, 2251, 2347, 2371, 2467, 2707, 2731, 2803, 2971, 3187, 3307, 3547, 3643, 3907, 3931, 4051, 4243, 4363, 4603, 4651, 4723, 5107, 5227, 5443, 5923
Offset: 1
Crossrefs
Programs
-
Mathematica
Select[Prime[Range[1000]], PrimeQ[(# + 1)/4] &] (* Alonso del Arte, Jan 14 2024 *)
-
PARI
is(n)=isprime(n) && isprime(4*n-1) \\ Charles R Greathouse IV, Jun 14 2022
-
Scala
def isPrime(num: Int): Boolean = Math.abs(num) match { case 0 => false; case 1 => false; case n => (2 to Math.floor(Math.sqrt(n)).toInt) forall (p => n % p != 0) } ((1 to 2500).map(4 * - 1)).filter(n => isPrime(n) && isPrime((n + 1)/4)) // _Alonso del Arte, Jan 14 2024
Formula
a(n) >> n log^2 n. - Charles R Greathouse IV, Jun 14 2022
Extensions
More terms from N. J. A. Sloane, Jul 19 2009
Comments