Skip to content

Sieve of Eratosthenes in Lean for performance testing

License

Notifications You must be signed in to change notification settings

ykonstant1/esiv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Lean implementation of the Sieve of Eratosthenes with wheel factorization. No segmentation, parallelism or other optimizations are done.

The main motivation was to test the performance of relatively unoptimized Lean code in some arithmetic contexts where large arrays are necessary. For small inputs approximately up to 2^{35}, the function performs approximately 200 times slower than the optimized primesieve. Segmentation is required to push this program to bigger inputs; I have left this to a future version of the code.

About

Sieve of Eratosthenes in Lean for performance testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages