| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168737Image: ubuntu2004
Writing a number in binary
[1, 0, 0, 1, 0, 0, 0, 0, 0, 1]
521
7
Problem: Compute .
521
[1, 0, 0, 1, 0, 0, 0, 0, 0, 1]
'1000001001'
True
3203
3203
3203
Exponentiation Mod n Calculator
[removed]
|
Our First Primality Test
If then has a chance of being prime.
157
1
172693837716124418522092982979366532296314630498967
79829587767292159558640084729953131077372528003242
Time: CPU 0.00 s, Wall: 0.00 s
3 * 449862907000167013519 * 127960344532295706107782898131
Time: CPU 1.70 s, Wall: 1.70 s
True
[removed]
|
Idle Question: Is there an elementary argument that the percentage of failures go to 0 as ?
Finding a Charmichael Number
n = 561
n = 1105
n = 1729
n = 2465
n = 2821
n = 6601
1729
Miller-Rabin
An extremely powerful probabilistic primality test. Every call increases the chances of a correct conclusion.
[removed]
|