How could you use prime factorization to tell whether a number is even or odd?

its easy to tell that if the last number ends with 0,2,4,6,8,10,12,14,16,18,20 so on and so on then its even if the answer starts with a 1,3,5,7,9,11,13,15,17,19 so on so on then its an odd number