Homeomorphism classes of lens spaces

Input the coefficient p>1 to know how many homeomorphism classes of lens spaces there are.

The algorithm is based on this Mathoverflow question.

If the "sequential" option is checked, the program will print all the result for values of p up to your input.