Max prime gap up to 1e18 is around 1600, Using that bound the solution will be too slow (1600^2 * 60 * 1000).
Max prime gap up to 1e18 is around 1600, Using that bound the solution will be too slow (1600^2 * 60 * 1000).