Update Generic Prime Solver