console// > [2, 3]
console// > 133
Why is this zero indexed?
Zero indexing is the most popular convention for indexes in programming. Either way, it’s really easy to transform.
What about primes?
This library is about operating with the pairing function from the lattice to the spiral and back. If you want to plot primes on top of it, it should be simple enough.
And yes, the diagonal stripe prime patterns always appear, no matter what the starting value is :)
yarn add zero-indexed-ulam-spiral