OFFSET
0,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..2000
FORMULA
a(n) = A047814(2^n). - Pontus von Brömssen, Jan 16 2025
EXAMPLE
2^37 = 1{3743895347}2, so a(37) = 3743895347.
PROG
(Python)
from sympy import isprime
def a(n):
s = str(2**n)
ss = (int(s[i:j]) for i in range(len(s)) for j in range(i+1, len(s)+1))
return max((k for k in ss if isprime(k)), default=0)
print([a(n) for n in range(46)]) # Michael S. Branicky, Sep 20 2022
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Patrick De Geest, Jun 15 1998
EXTENSIONS
a(44) and beyond from Michael S. Branicky, Sep 20 2022
STATUS
approved