saving prime problem progress