-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added the Number
is_strong_fibonacci_pseudoprime(n)
method.
It returns true if `n` is a strong Fibonacci pseudoprime, satisfying: V_n(P,Q) = P (mod) for Q = -1 and all P. Odd composite integer n is a strong Fibonacci pseudoprime iff: 1) n is a Carmichael number: p-1 | n-1 2) 2(p + 1) | (n − 1) or 2(p + 1) | (n − p) for each prime p|n. Example: say is_strong_fibonacci_pseudoprime(443372888629441) #=> true say is_strong_fibonacci_pseudoprime(39671149333495681) #=> true
- Loading branch information
Showing
2 changed files
with
116 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters