packSize=100; // Number of integers per cell cellSize=5; // Number of pixels per cell function isPrime(n) { for(var i = 2, s = Math.sqrt(n); i <= s; i++) if(n % i === 0) return false; return n !== 1; } function packHasPrimes() { var myNum=curNum+x; for (var i=0;i go

Shaun Gilchrist and Nova Spivack have discovered an interesting way to look at prime numbers here . To see a larger image of it, I wrote the following javascript. Click the go button to run the code.