2022 can be written as $2*3*337$. (You're correct till here)
Now, the solution set consists of the numbers below 2022 that are divisible by 2 but not divisible by 3 or 337.
So, how many numbers less than 2022 are divisible be 2?
1010 numbers less than 2022 are divisible by 2.
Now how many numbers are divisible by 6(i.e. Divisible by both 2 and 3)?
I am asking this because I want to eliminate those numbers which are divisible by 3 from the set of the above 1010 numbers.
So, 336 of these 1010 numbers are divisible by 6.(you can try to figure it out how)
Now, how many of these 1010 numbers are divisible by 674(i.e. divisible by both 2 and 337)?
Well, 2 numbers are.
So, if we subtract these elements from 1010, we should get our final answer.
Final answer: 1010-336-2=672
Eureka!