A352393 Numbers k such that 3^k + 5^k + 7^k + 11^k + 13^k is prime.
0, 2, 4, 6, 12, 14, 28, 60, 68, 2070, 7910, 10740
Offset: 1
Examples
For k=2 we obtain f(2) = 3^2 + 5^2 + 7^2 + 11^2 + 13^2 = 373 which is a prime.
Programs
-
Mathematica
Select[Range[0, 1000], PrimeQ[3^# + 5^# + 7^# + 11^# +13^#] &]
-
Python
from sympy import isprime from itertools import count, islice def agen(): yield from (k for k in count(0) if isprime(3**k + 5**k + 7**k + 11**k + 13**k)) print(list(islice(agen(), 9))) # Michael S. Branicky, Jun 07 2022
Extensions
a(11)-a(12) from Hugo Pfoertner, Jun 07 2022
Comments