How should I handle unknown primary keys?
As you don't know if there's any logic in the keys you can't tell if a huge or negative number will lead to a key violation.
Without knowledge of the application I'd suggest importing the previous pupils in the new software to get a regular id is the way to go.