Retabulate isPrime and area functions