Given a number, we have to check that the entered number is Evil Number or not.
A number is said to be an Evil number if and only if it is having an even number of 1’s. The entered number must be a whole number.
Example:
Input: 3
Output:
3 – Is an Evil prime.
Program to check whether the given number is Evil Number or not in Java
Output
need an explanation for this answer? contact us directly to get an explanation for this answer