function is_pprime(val) { //is probably prime var primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 47, 53, 59, 61, 71, 73, 87, 93]; var i; for (i=0; i