Student 1 said "the number is divisible by 1",
Student 2 said "the number is divisible by 2",
and so forth...until
Student 31 said "the number is divisible by 31".
The teacher remarked: "Very well pups, but two of you gave a wrong statement, and those two sit besides each other". Determine those two.