Remix.run Logo
davedx 3 days ago

I think another interesting feature would be if you could change the number base to 16 or some other base, I'm really curious if the pattern would change.

susam 2 days ago | parent | next [-]

> I think another interesting feature would be if you could change the number base to 16 or some other base, I'm really curious if the pattern would change.

Whether a number is prime has nothing to do with the base we use to write it. Changing the base wouldn't affect the visualisation at all. A number is either prime or not regardless of base. Since this grid only marks prime positions with circles, the pattern would look exactly the same. In fact, you can already imagine the numbers in any base you like while looking at the visualisation.

2 days ago | parent [-]
[deleted]
lblume 3 days ago | parent | prev | next [-]

Numbers are prime irrespective of base.

ForOldHack 3 days ago | parent | next [-]

Since I seriously doubt that these numbers were checked in decimal, I would be led to believe base-2 is working and working well, as well as all other even bases. Ood bases would be fun,but much slower.

I tried odd number of rows and prime number of rows. All very interesting.

xandrius 3 days ago | parent | prev [-]

So it's already supported!

teytra 3 days ago | parent | prev [-]

Set columns to 6, and the pattern is changed in an "interesting" way.

All primes are n*6 +/- 1 (after the primes 2 and 3 that are "special").

jalk 3 days ago | parent [-]

Set cols to anything divisible by 6, to get the same kind of "stacks" with more cols (i.e. 90)