/python-cpu-bench

Tiny python CPU benchmark / prime cruncher

Primary LanguagePythonMIT LicenseMIT

Tiny Python CPU benchmark / prime cruncher

A tiny Python prime number cruncher / CPU bench
— A fun little exercise

How to use:

python3 cpu.py

Optional argument -n (number to crunch)

python3 cpu.py -n 100000000

(using pypy3 seems to be about 10x faster)

Some thoughts