October 09, 2013

Generating prime numbers with Arduino

Of interest to the mathematically-inclined, or those teaching maths - or if you're interested in algorithms comes the following neat project by Arduino enthusiast Nick Gammon. He has created a prime number generator that generates and displays ascending prime numbers on a typical numeric display of your choice and also sent to the serial monitor. The process has been slowed down in the sketch to allow the observer to see the generated numbers, as shown in the following video:

Projects like these are an example of the more theoretical uses of the Arduino in education, and in a classroom situation discussion of various algorithms suggested by students could easily be implemented to test for speed and coding efficiency. For more information including the sketch and discussion, visit the Arduino forum. And for more, we're on twitter and Google+, so follow us for news and product updates as well. 

If you're new to Arduino and want to join the fun, the first step is a solid board for your projects - our Freetronics Eleven - the Arduino-Uno compatible with low-profile USB socket, onboard prototyping space and easy to view LEDs:   

Leave a comment

Comments have to be approved before showing up.