Solve #5.
Fewer potential trial division factors.
Solve #6.
Solve #7.