You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p = 206730196442584779649621482864996679457396164999826860005439642699126532367829802133495310863905565334850031426826557127649035216408610689106208254316971417542056134302026422176146550376860493876672577460870441427154185011695841
q = 413460392885169559299242965729993358914792329999653720010879285398253064735659604266990621727811130669700062853653114255298070432817221378212416508633942835084112268604052844352293100753720987753345154921740882854308370023391681
One possible solution would be to use large random prime bases (rather than consecutive small prime bases) or to use the Miller-Rabin factorization method described in #19 which is very fast at factoring Fermat pseudoprimes.
Here's a list of 13 more non-Carmichael numbers that are reported as Carmichael numbers by is_carmichael(n): non-Carmichael.txt
The text was updated successfully, but these errors were encountered:
trizen
added a commit
to trizen/sidef
that referenced
this issue
Nov 12, 2022
For large enough inputs (>10^50),
is_carmichael(n)
uses a probable test to determine ifn
is probably a Carmichael number.However, there are counter-examples to this approach (see also A285549), which makes the function to return true even if
n
is not a Carmichael number.An example for such a number (see on factordb):
The prime factors of the above number are:
One possible solution would be to use large random prime bases (rather than consecutive small prime bases) or to use the Miller-Rabin factorization method described in #19 which is very fast at factoring Fermat pseudoprimes.
Here's a list of 13 more non-Carmichael numbers that are reported as Carmichael numbers by
is_carmichael(n)
: non-Carmichael.txtThe text was updated successfully, but these errors were encountered: