Checking the ulam spiral

In the following post, the Ulam spiral is described. It’s a very simple object – write down consecutive natural numbers starting from 41 in a square spiral. Curiously, the numbers on the diagonal are primes: Reading this post, I immediately wanted to check how long this property holds. The original blog post suggests: Remarkably, all … Continue reading Checking the ulam spiral