Criterion 2020 Round 2

This contest is formatted as per the official rules of ICPC Regional Programming Contests. See details...

This is a companion discussion topic for the original entry at

For problem E, it says “if two students with different parities (one student with even id and one student with odd id)”, but does it mean a student with prime id and a student with non-prime id?