Adding primality check endpoint