Update primality.js