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 A309092 #20 Jul 17 2019 09:08:16 %S A309092 256,512,768,1024,1280,1536,1792,2048,2304,2560,2816,3072,3328,3584, %T A309092 3840,4096,4097,4098,4099,4100,4101,4102,4103,4104,4105,4106,4107, %U A309092 4108,4109,4110,4111,4352,4608,4864,5120,5376,5632,5888,6144,6400,6656,6912,7168 %N A309092 Integers whose hexadecimal representation contains a run of zeros of prime length. %e A309092 256 = 100_(16) is a term because 100 has a run of two zeros, and two is prime. 258 = 102_(16) is not a term, because its only run of zeros is of length 1, which is not prime. %t A309092 Select[Range@ 7168, Select[Split@ IntegerDigits[#, 16], #[[1]] == 0 && PrimeQ@ Length@ # &] != {} &] (* _Giovanni Resta_, Jul 16 2019 *) %o A309092 (Python) %o A309092 from re import split %o A309092 from sympy import isprime %o A309092 seq_list, n = [],1 %o A309092 while len(seq_list) < 10000: %o A309092 for d in split('[1-9]+|[a-f]+', format(n,'x')): %o A309092 if isprime(len(d)): %o A309092 seq_list.append(n) %o A309092 n += 1 %Y A309092 Cf. A110529, A319302. %K A309092 nonn,easy,base %O A309092 1,1 %A A309092 _W. Zane Billings_, Jul 11 2019