OFFSET
1,2
COMMENTS
Zlib uses the "deflate" algorithm and here with its default compression level 6 and window bits 15.
LINKS
PROG
(Python)
import zlib
def g():
max_m, i=0, 1
while True:
if (m := len(zlib.compress(b"A"*i))) > max_m:
max_m = m
yield i
i+=1
from itertools import islice
print(list(islice(g(), 45)))
CROSSREFS
KEYWORD
nonn
AUTHOR
DarĂo Clavijo, Aug 19 2024
STATUS
approved