add primality.js