### 2 unstable releases

0.1.0 | May 6, 2023 |
---|---|

0.0.0 | May 6, 2023 |

#**1395** in Math

**MPL-2.0**license

6KB

53 lines

A super prime is a prime number that, when any of its digits is deleted, the remaining number is still prime.

eg:

- 1 -> 19 -> 199 -> 1999 -> 13999 -> ...
- 2 -> 29 -> 269 -> 2969 -> 25969 -> ...

So we called 25969 a super prime.

## Examples

`let` start `=` `BigUint``::`from`(``2``usize``)``;`
`for` n `in` `super_prime``(``&`start`,` `100``)``.``into_iter``(``)``.``rev``(``)` `{`
`println!``(``"``{}``"``,` n`)``;`
`}`

#### Dependencies

~1.5MB

~25K SLoC