login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A058994
Numbers m such that 7^m reversed is prime.
5
1, 12, 24, 225, 392, 819, 1201, 1645, 1775
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
Numbers m such that k^m reversed is prime: A057708 (k=2), A350441 (k=4), A058993 (k=5), this sequence (k=7), A350442 (k=8), A058995 (k=13).
Sequence in context: A130163 A002167 A154268 * A198808 A249134 A323195
KEYWORD
nonn,base,more
AUTHOR
Robert G. Wilson v, Jan 17 2001
STATUS
approved