You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
332 B
24 lines
332 B
2 years ago
|
|
||
|
Exercise 1.27: Demonstrate that the Carmichael
|
||
|
numbers listed in Footnote 47 really do fool the Fermat test. That is,
|
||
|
write a procedure that takes an integer
|
||
|
n
|
||
|
and tests whether
|
||
|
|
||
|
a
|
||
|
n
|
||
|
|
||
|
is
|
||
|
congruent to
|
||
|
a
|
||
|
modulo
|
||
|
n
|
||
|
for every
|
||
|
|
||
|
a
|
||
|
<
|
||
|
n
|
||
|
|
||
|
, and try your procedure
|
||
|
on the given Carmichael numbers.
|