This file contains hidden or 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
| use std::collections::HashMap; | |
| pub fn run_prime_test() { | |
| // two prime numbers (small for demo only) | |
| let p: i64 = 61; | |
| let q: i64 = 53; | |
| // modulus and totient | |
| let n = p * q; // 3233 | |
| let phi = (p - 1) * (q - 1); // 3120 |