This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A046268 #16 Jan 16 2025 12:37:14 %S A046268 0,2,0,0,0,3,0,2,5,5,2,2,409,19,163,7,6553,131,2621,5,857,971,419,83, %T A046268 1677721,5443,71,1342177,43,709,107,83,4294967,89,171798691,3597383, %U A046268 6871947673,3743895347,779069,54975581,511627,99023,4398046511,79609,18604441,883 %N A046268 Largest prime substring in 2^n (or 0 if none exist). %H A046268 Michael S. Branicky, <a href="/A046268/b046268.txt">Table of n, a(n) for n = 0..2000</a> %F A046268 a(n) = A047814(2^n). - _Pontus von Brömssen_, Jan 16 2025 %e A046268 2^37 = 1{3743895347}2, so a(37) = 3743895347. %o A046268 (Python) %o A046268 from sympy import isprime %o A046268 def a(n): %o A046268 s = str(2**n) %o A046268 ss = (int(s[i:j]) for i in range(len(s)) for j in range(i+1, len(s)+1)) %o A046268 return max((k for k in ss if isprime(k)), default=0) %o A046268 print([a(n) for n in range(46)]) # _Michael S. Branicky_, Sep 20 2022 %Y A046268 Cf. A000079, A046260, A047814. %K A046268 nonn %O A046268 0,2 %A A046268 _Patrick De Geest_, Jun 15 1998 %E A046268 a(44) and beyond from _Michael S. Branicky_, Sep 20 2022