OFFSET
1,2
MATHEMATICA
Do[ If[ PrimeQ[ ToExpression[ StringReverse[ ToString[7^n] ] ] ], Print[n] ], {n, 1, 2500} ]
PROG
(Python)
from sympy import isprime
k, m, A058994_list = 1, 7, []
while k <= 10**3:
if isprime(int(str(m)[::-1])):
A058994_list.append(k)
k += 1
m *= 7 # Chai Wah Wu, Mar 09 2021
(PARI) isok(m) = isprime(fromdigits(Vecrev(digits(7^m)))) \\ Mohammed Yaseen, Jul 20 2022
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Robert G. Wilson v, Jan 17 2001
STATUS
approved