A384187 Primes p such that p + 6, p^2 + 6, p^3 + 6, p^4 + 6 and p^5 + 6 are primes.
1361, 70216961, 71317991, 311153281, 371383381, 385230821, 400675721, 466490881, 487757861, 620258761, 818694271, 822486341, 888942491, 898259491, 1102784471, 1423261241, 1443957371, 1623698051, 1628827091, 1729743571, 1831375171, 1837091231, 1904579381, 1978478521, 2070333781
Offset: 1
Keywords
Programs
-
Mathematica
Select[Prime[Range[32327000]],AllTrue[#^Range[0,5]+6,PrimeQ]&] (* The program generates the first 10 terms of the sequence. *) (* Harvey P. Dale, Jun 13 2025 *)
-
Python
from sympy import isprime, primerange lim = 10**9 A384187 = [] for p in primerange(2, lim): if isprime(p + 6) and isprime(p**2 + 6) and isprime(p**3 + 6) and isprime(p**4 + 6) and isprime(p**5 + 6): A384187.append(p) print(", ".join(str(p) for p in A384187))
Comments