Select the number that does not fit with the others.

Answer: C. 40
40 is an even number, while 25, 31, and 45 are odd numbers.