Atelier des rouesLab FR
Objects/Documentation

budget11.py

I provide this item to reproduce or inspect AT.P14.

Download ↓
"""Frozen memory budget, held-out thresholds and one-step prime-state refinement."""
import argparse,json,subprocess,sys,tracemalloc
from bisect import bisect_right
from math import gcd,isqrt
from statistics import median
from time import perf_counter_ns
from seuils10 import MODEL,oracle,run
X=[407995,408000,408005];Y=816000
def calc():
    primes=oracle(Y)
    counts={}
    for x in X:
        expected=[bisect_right(primes,t) for t in (x,Y)]
        for mode in ('one','union','several'):assert run([x,Y],MODEL,mode)[0]==expected
        counts[x]=expected
    def state(x):return (x%30,x%7==0,x%11==0,(x+1)%11==0)

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.