removed isPrime as it wasn't used