Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
/ C-prime-sieve Public archive

A prime number sieve written in C running every 24 on github actions to try and find trends

License

Notifications You must be signed in to change notification settings

HeronErin/C-prime-sieve

Repository files navigation

Prime number sieve in C

Warning

Discontinued. Ran from 02/15/24 until 08/15/24 and contains 6 mounths of data.

This is a test of how fast I can write a prime sieve, although I am no expert. Then I added in some Github Actions and Python code to run these tests everyday, and generate graphs of the preformance over time. The following is some auto-generated statistics from the last test ran:

Test Runtime (s)
500000 @ -O0 0.036275
500000 @ -O1 0.036271
500000 @ -O2 0.036466
500000 @ -O3 0.036464
1000000 @ -O0 0.099954
1000000 @ -O1 0.100162
1000000 @ -O2 0.101146
1000000 @ -O3 0.101115
5000000 @ -O0 3.634101
5000000 @ -O1 3.791998
5000000 @ -O2 3.728140
5000000 @ -O3 4.503319
10000000 @ -O0 15.344835
10000000 @ -O1 15.615754
10000000 @ -O2 16.584651
10000000 @ -O3 17.178725

Generated at 15/08/24 EST

Historic preformence data:500000%20@%20-O3.png

1000000%20@%20-O3.png 500000%20@%20-O1.png 5000000%20@%20-O2.png 5000000%20@%20-O0.png 1000000%20@%20-O2.png 500000%20@%20-O2.png 10000000%20@%20-O0.png 5000000%20@%20-O1.png 5000000%20@%20-O3.png 10000000%20@%20-O2.png 10000000%20@%20-O3.png 1000000%20@%20-O0.png 1000000%20@%20-O1.png 10000000%20@%20-O1.png 500000%20@%20-O0.png

Copyright

 Copyright (C) 2024  HeronErin

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU Affero General Public License for more details.

 You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

About

A prime number sieve written in C running every 24 on github actions to try and find trends

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published