Skip to content

Addition of a small segmented sieve - #608

Open
czurnieden wants to merge 1 commit into
libtom:developfrom
czurnieden:small_sieve
Open

czurnieden wants to merge 1 commit into
libtom:developfrom
czurnieden:small_sieve

Conversation

@czurnieden

Copy link
Copy Markdown
Contributor

A small segmented sieve for n<2^32 with ability to check a small number for primality, get the next small prime and the preceding small prime.

The sieve allocates the memory for the base sieve (4100 bytes) and the segments (8196 bytes) only once.

The corresponding tests in test.c have the macros MP_SMALL_SIEVE_FULL_ROUND_INCREASING and MP_SMALL_SIEVE_FULL_ROUND_DECREASING which test the whole range 1<n<2^32. That needs more time than offered by testme.sh. A fix for testme.sh adding a timeout option is in #607

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant