A teacher wrote a large number on the board and asked the students to tell about the divisors of the number one by one.
The 1st student said, "The number is divisible by 2." The 2nd student said, "The number is divisible by 3." The 3rd student said, "The number is divisible by 4." . . . (and so on) The 30th student said, "The number is divisible by 31.
The teacher then commented that exactly two students, who spoke consecutively, spoke wrongly.
Which two students spoke wrongly?
Taken from here