Speeded up algorithm

Based on every prime apart from 2 and 3 is 6 +/- 1