Sieve of Eratosthenes

Sieve of Eratosthenes is a simple algorithm for finding all prime numbers up to any given natural number (in this dynamic worksheet, primes less than 100). Of course, it would be much easier if I've used JavaScript and there would be significantly less lines of code, but I wanted to show what is possible with pure GeoGebra scripting and only one slider... all right... two sliders ;-) Enjoy!

 
 
© 2024 International GeoGebra Institute