Crates.io | super-prime |
lib.rs | super-prime |
version | 0.1.0 |
source | src |
created_at | 2023-05-06 08:47:58.790741 |
updated_at | 2023-05-06 08:54:52.028276 |
description | Find the super prime number. |
homepage | |
repository | https://github.com/oovm/fun-numbers/tree/dev/projects/super-prime |
max_upload_size | |
id | 858403 |
size | 6,184 |
A super prime is a prime number that, when any of its digits is deleted, the remaining number is still prime.
eg:
So we called 25969 a super prime.
# use super_prime::{BigUint, super_prime};
let start = BigUint::from(2usize);
for n in super_prime(&start, 100).into_iter().rev() {
println!("{}", n);
}