AI + IoT + Hobbies
You are correct, 1 is an exception, thank you for pointing out, prime number should have two factors
You can simply add one more if to handle such case or use other approaches to find prime number
one more of what? and what would the alternative be?