Updated prime generation.
Update code to use new prime generation facilities.
Test the solution