pub struct SelfridgeBase;Expand description
“Method A” for selecting the base given in Baillie & Wagstaff1, attributed to Selfridge.
Try D = 1 - 4Q = 5, -7, 9, -11, 13, ... until Jacobi(D, n) = -1.
Return P = 1, Q = (1 - D) / 4).
R. Baillie, S. S. Wagstaff, “Lucas pseudoprimes”, Math. Comp. 35 1391-1417 (1980), DOI: 10.2307/2006406, http://mpqs.free.fr/LucasPseudoprimes.pdf
Trait Implementations§
Source§impl Clone for SelfridgeBase
impl Clone for SelfridgeBase
Source§fn clone(&self) -> SelfridgeBase
fn clone(&self) -> SelfridgeBase
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelfridgeBase
impl Debug for SelfridgeBase
Source§impl LucasBase for SelfridgeBase
impl LucasBase for SelfridgeBase
Source§impl PartialEq for SelfridgeBase
impl PartialEq for SelfridgeBase
impl Copy for SelfridgeBase
impl Eq for SelfridgeBase
impl StructuralPartialEq for SelfridgeBase
Auto Trait Implementations§
impl Freeze for SelfridgeBase
impl RefUnwindSafe for SelfridgeBase
impl Send for SelfridgeBase
impl Sync for SelfridgeBase
impl Unpin for SelfridgeBase
impl UnwindSafe for SelfridgeBase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more