Big blackboard

Can you work out which numbers between 1 and 2016 have exactly two of 2, 3, 4 as factors?

Problem



The whole numbers from 1 to 2016 are written on a blackboard.

Moritz underlines all the multiples of two in red, all the multiples of three in blue, and all the multiples of four in green.

How many numbers does Moritz underline exactly twice?

This problem is taken from the UKMT Mathematical Challenges.