Atelier des rouesLab FR
Objects/Documentation

adresse43.py

Reproducible material from the experimental kit.

Download ↓
"""Verify the local gap-30 certificate at 43 by sieving ticks, independently of XII's prefix code."""
from math import gcd,prod,isqrt
import json


def experiment():
    primes = [p for p in range(2,44) if all(p%d for d in range(2,isqrt(p)+1))]
    period = prod(primes)
    anchor, address, gap = 4360920443890010,4360920492100729,30
    claimed_anchor_rank, target = 603296659486,603296665977
    # Include the right endpoint of every candidate gap, including the final candidate.
    length = address-anchor+gap+1
    surviving = bytearray([1])*length
    for p in primes:
        first = (-anchor)%p
        surviving[first::p] = bytes(len(range(first,length,p)))

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.