Objets/Documentation
budget11.py
Je fournis cette pièce pour reproduire ou examiner AT.P14.
Télécharger ↓"""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)