Simon's age

Weekly Problem 3 - 2016
How many times has Simon's age changed from a square to a prime?

Problem



Simon has his $101^\text{st}$ birthday tomorrow. His age will change from a square ($100$) to a prime ($101$). How many times has this happened before in his life?

If you liked this problem, here is an NRICH task which challenges you to use similar mathematical ideas.