Add primality.js