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!

 

Aleksandra-Maria Vuković

 
Tipo de recurso
Actividade
Etiquetas
composite-number  eratostene  eratosthenes  eratosthenes-sieve  eratóstenes  exploration  numbers  prime  prime-number  primes  sieve sieve-of-eratosthenes sil Ver maís…
Grupo de destino (idade)
11 – 14
Idioma
English (United Kingdom)
 
 
 
© 2026 International GeoGebra Institute