Which of these numbers has exactly four factors?
A6
B 12
C 18
D 24​