8000 GitHub - nwb99/simpleprime: Simple prime generator program written in C
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nwb99/simpleprime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Prime Generator

Tested on macOS Monterey and Linux.

Needs clang or gcc. Clang seems to be faster, on Linux at least.

The bash 3.2 included in macOS will not work with the test.sh script.
Update bash using Homebrew.

make to make with Clang.
make gcc to make with GCC.
make clean to clean up results.txt and the executables.

Generated 20,000 prime numbers on M1 MacBook Air in about 1.4-1.5 seconds, going by time command in shell.

About

Simple prime generator program written in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0