OFFSET
1,1
EXAMPLE
3^2 + 5^2 + 7^2 + 11^2 + 13^2 = 373, which is a prime.
3^4 + 5^4 + 7^4 + 11^4 + 13^4 = 46309, which is a prime.
MATHEMATICA
Select[Table[3^n + 5^n + 7^n + 11^n + 13^n, {n, 0, 1000}], PrimeQ]
PROG
(Python)
from sympy import isprime
from itertools import count, islice
def agen(): yield from (p for p in (3**k + 5**k + 7**k + 11**k + 13**k for k in count(0)) if isprime(p))
print(list(islice(agen(), 9))) # Michael S. Branicky, Jun 07 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Hemjyoti Nath, Jun 07 2022
STATUS
approved