Solved problem

The topic of prime numbers and long integers eluded me.