Challenges

Featured Challenge:
#C2 — Collatz Conjecture

It's the second episode of Coding in the Cabana! Here I attempt to visualize the Collatz Conjecture in Processing.

oct 27, 2019

Collatz Conjecture

Filter by Language

Pick a language to filter

Filter by Topic

prime numbers

Why do prime numbers show up as diagonals in a spiral? In this video, I create a visualization in JavaScript (p5.js) of the Ulam Spiral (aka Prime Spiral) named for Polish Mathematician Stanislav Ulan.

The Prime (Ulam) Spiral