root/hodgestar/PythonCode/AacsKeyFactoring/AACS.py
| Revision 34, 210 bytes (checked in by simon, 5 years ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | import math |
| 2 | import numbthy |
| 3 | |
| 4 | h = '09F911029D74E35BD84156C5635688C0' |
| 5 | x = int(h,16) |
| 6 | factors = numbthy.factors(x) |
| 7 | |
| 8 | def check(x,factors): |
| 9 | for f in factors: |
| 10 | assert x % f == 0 |
| 11 | x = x / f |
| 12 | assert x == 1 |
| 13 |
Note: See TracBrowser
for help on using the browser.
