News & Articles

PyroEDU
Get started learning to build your own electronics by following our FREE online courses below!
Learn More »

Categories

Sponsors

Build Like A Pyro!
Find many of the parts used on this site at our favorite online electronics shop
Take Me To The Gadgetory!
TinyPrime AVR Prime Number Generator/Tester

Posted February 1, 2015 by Chris

"The programming for this is actually kind of interesting. Every time you push the button, the AVR retrieves the currently-displayed number, and then increments it, clicks the counter, and tests for primality. If the number isn’t prime, it increments and clicks again. When a prime number is reached, it stops and waits for another button press."

Leave a Reply