Specified stricter arguments, added isPrime #4