changed return type of isprime to "string"