Just divide the number into its prime factors and then check if one of them is 2.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies:
Just divide the number into its prime factors and then check if one of them is 2.