Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Wieferich-primes/PicoLisp/wieferich-primes.l
Normal file
14
Task/Wieferich-primes/PicoLisp/wieferich-primes.l
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(de **Mod (X Y N)
|
||||
(let M 1
|
||||
(loop
|
||||
(when (bit? 1 Y)
|
||||
(setq M (% (* M X) N)) )
|
||||
(T (=0 (setq Y (>> 1 Y)))
|
||||
M )
|
||||
(setq X (% (* X X) N)) ) ) )
|
||||
(let (D 2 L (1 2 2 . (4 2 4 2 4 6 2 6 .)))
|
||||
(until (> D 5000)
|
||||
(and
|
||||
(=1 (**Mod 2 (dec D) (* D D)))
|
||||
(println D) )
|
||||
(inc 'D (++ L)) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue