added isPrime helper..in progress