### 15 releases

Uses old Rust 2015

0.1.14 | May 16, 2015 |
---|---|

0.1.13 | May 16, 2015 |

0.1.12 | Apr 8, 2015 |

0.1.11 | Mar 4, 2015 |

0.1.4 | Nov 20, 2014 |

#**26** in #primes

**865** downloads per month

Used in **4** crates
(3 directly)

**MIT/Apache**

105KB

2K
SLoC

Deprecated in favour of primal.

# slow_primes

Extremely simplistic and relatively unoptimised handling of basic tasks around primes:

- checking for primality
- enumerating primes
- factorising numbers
- estimating upper and lower bounds for π(
*n*) (the number of primes below*n*) and*p*(the_{k}*k*th prime)

This uses a basic Sieve of Eratosthenes to enumerate the primes up to some fixed bound (in a relatively memory efficient manner), and then allows this cached information to be used for things like enumerating the primes, and factorisation via trial division.

(Despite the name, it can sieve the primes up to 10^{9} in
about 5 seconds.)

#### Dependencies

~465KB