OFFSET
1,1
COMMENTS
Expression of the primes that are 0-successors of the preprime 1111111 (= 239*4649); they constitute the infinite set of secondary primes with seven 1's and zeros denoted {1111111} (Definitions 1, 2, 3, 4 of Clerc).
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..12277
René-Louis Clerc, Nombres premiers primaires et nombres premiers secondaires, zenodo.19022321, 2026.
PROG
(PARI) list(M) = for(i=3, M, for(j=2, i-1, for(k=1, j-1, for(r=1, k-1, for(l=1, r-1, for(m=1, l-1, my(p=10^i+10^j+10^k+10^r+10^l+10^m+1); isprime(p) && print1(p, ", ")))))))
(Python)
from itertools import count, islice
from sympy import isprime
def A383919_gen(): # generator of terms
for a in count(6):
for b in range(5, a):
for c in range(4, b):
for d in range(3, c):
for e in range(2, d):
for f in range(1, e):
if isprime(p:=10**a+10**b+10**c+10**d+10**e+10**f|1):
yield(p)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
René-Louis Clerc, May 15 2025
STATUS
approved
