back to table · edit · history · where entries came from · files · download
1424 bytes, as of the version from 2026-12-02 04:01 (current). Recorded here, not run.
import json,sys,importlib.metadata,hashlib,pathlib
import generate
from numberdb._write import to_text
def artifact(name,data):print('ARTIFACT '+name+' '+json.dumps(data,separators=(',',':')),flush=True)
bits,J=generate.settings(100)
d,base,coeffs=generate.coefficients(J)
artifact('exact-coefficients.json',{'delta':[str(d[j]) for j in range(2*J)],
'h':{str(m):[str(v) for v in h] for m,h in coeffs.items()}})
xs,cert=generate.roots(bits);artifact('root-certificates.json',cert)
rows=[];certificates=[]
for m in range(2,31):
value,c=generate.compute(m,100);text=to_text(value,100)
rows.append({'params':{'m':str(m)},'number':text})
c['stored_number']=text;certificates.append(c)
artifact('primary-row-'+str(m)+'.json',c)
print('Computed',m,text[:30],'accuracy bits',c['accuracy_bits'],flush=True)
artifact('numbers.json',rows)
artifact('primary-results.json',{'checked_entries':29,'certificates':certificates,
'instruction_manifest':'../20261201T070213Z-build-skills/manifest.json',
'instruction_manifest_sha256':'b115697c9321b4193a70f8fc1fda7a31aa492fbce8fc08f20b62363d72eab302'})
artifact('sage-versions.json',{'python':sys.version,'numberdb':importlib.metadata.version('numberdb'),
'sage_version':str(__import__('sage.version',fromlist=['version']).version),
'generator_sha256':hashlib.sha256(pathlib.Path(generate.__file__).read_bytes()).hexdigest()})