Skip to content

Releases: JSorngard/const-primes

v0.8.7

19 Jun 20:03
Compare
Choose a tag to compare

What's changed

  • Sped up the is_prime function by checking smaller bases of witnesses for smaller numbers.

Full Changelog: v0.8.6...v0.8.7

v0.8.6

17 Jun 16:53
Compare
Choose a tag to compare

What's Changed

  • Fixed a bug where primes_lt and sieve_lt could panic for some inputs where the underlying segmented sieve tried to sieve negative numbers, in #55.

Full Changelog: v0.8.5...v0.8.6

v0.8.5

17 Jun 09:26
Compare
Choose a tag to compare

What's Changed

  • Add the feature const_assert that promotes panics into compile errors by using inline const from Rust 1.79.0, in #50.

Full Changelog: v0.8.4...v0.8.5

v0.8.4

13 Jun 05:31
Compare
Choose a tag to compare

This is a tiny release

Changes

  • Add links to the local license files to the README.
  • Add a docs.rs badge.
  • Small documentation improvements.

Full Changelog: v0.8.3...v0.8.4

v0.8.3

10 Jun 11:47
Compare
Choose a tag to compare

What's Changed

  • Add totient function to Primes<N> , in #42.
  • Derive Serialize and Deserialize for the error types, in #43.
  • Derive Hash for SieveError, in #43.

Full Changelog: v0.8.2...v0.8.3

v0.8.2

07 Jun 12:46
187175a
Compare
Choose a tag to compare

What's Changed

  • Add support for serde to the Primes struct, hidden behind a feature, in #41.

Full Changelog: v0.8.1...v0.8.2

v0.8.1

03 Jun 14:11
Compare
Choose a tag to compare

What's Changed

  • Add feature gate badges on docs.rs, in #38.

Full Changelog: v0.8.0...v0.8.1

v0.8.0

02 Jun 19:09
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • Change the API of Primes<N>::binary_search to be the same as core::slice::binary_search, in #36.

Other changes

  • Minor documentation tweaks.

Full Changelog: v0.7.4...v0.8.0

v0.7.4

31 May 04:23
Compare
Choose a tag to compare

What's Changed

  • Correct wrong doclink to remainder function in docstring of Primes<N>::prime_factors.

Full Changelog: v0.7.3...v0.7.4

v0.7.3

31 May 04:11
b96c2f9
Compare
Choose a tag to compare

What's Changed

  • Add prime_factors function to Primes<N>, done in #35.

Full Changelog: v0.7.2...v0.7.3