A school ran three evening classes : judo, karate and kendo.

The judo class had 29 pupils, the karate class had 27 and the kendo class 23.
In which classes would the teacher have difficulty dividing the pupils into equal groups?

The teacher would have difficulty dividing the pupils into equal groups in the judo and karate classes, as they both have an odd number of pupils.

AAAaannndd the bot gets it wrong yet again!

29 and 23 are prime, so they cannot be divided evenly.