Copia: 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!

 

Francesc Piazuelo

 
Tipo de recurso
Actividad
Etiquetas
composite-number  eratostene  eratosthenes  eratosthenes-sieve  eratóstenes  prime  prime-number  primes  sieve  sieve-of-eratosthenes  sil Mostrar más…
Grupo destino (edad)
10 – 19+
Idioma
English (United Kingdom)
 
 
 
© 2025 International GeoGebra Institute