|
|
A341713
|
|
Indices of Ennesrem primes: k such that A004094(k)-1 is prime.
|
|
1
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Numbers k such that reverse(2^k) - 1 is prime.
Is this sequence infinite?
|
|
LINKS
|
|
|
EXAMPLE
|
13 is a term, since 2^13 = 8192 -> 2918 -> 2917, which is prime.
|
|
PROG
|
(PARI) for(n=1, 10000, my(pe=fromdigits(Vecrev(digits(2^n)))-1); if(ispseudoprime(pe), print1(n, ", "))) \\ Hugo Pfoertner, Feb 20 2021
(Python)
from sympy import isprime
def ok(k): return isprime(int(str(2**k)[::-1]) - 1)
for k in range(1, 2*10**3):
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|