Stemoto LogoStemoto

Patterns in Mathematics (Smart Prime & Composite Sieve Matrix)

Source:

Explore prime numbers up to 100 on a 100-LED RGB grid matrix board! Watch the automated Sieve of Eratosthenes algorithm eliminate multiples of 2, 3, 5, and 7 in glowing colors, leaving prime numbers highlighted in GOLD.

Categorisation

Props & Materials Required

  • 10x10 (100 LED) WS2812B NeoPixel RGB matrix panel (numbers 1-100)
  • 4x4 matrix keypad module
  • ESP32 controller board
  • 0.96-inch OLED display screen
  • DFPlayer Mini MP3 module + 3W speaker

Step-by-Step Instructions

1

Select Sieve Mode

Press 'RUN SIEVE OF ERATOSTHENES' on the keypad.

2

Eliminate Multiples of 2

All multiples of 2 (4, 6, 8, 10...) glow RED and dim out.

3

Eliminate Multiples of 3, 5, 7

Multiples of 3 glow BLUE, 5 glow PURPLE, 7 glow ORANGE.

4

Prime Numbers Gold Highlight

25 remaining prime numbers (2, 3, 5, 7, 11, 13, 17, 19... 97) flash in bright GOLD! Speaker: '25 Primes found between 1 and 100!'

Why It Works & Notes

Prime numbers (numbers with exactly 2 factors: 1 and itself) form the building blocks of mathematics. Running the visual Sieve of Eratosthenes on a 100-LED NeoPixel matrix makes number theory and prime factorization visually captivating.