new version of solution

Was not happy with the previous version as it created a list of growing lists of Primes -> [[3,2],[5,3,2],[7,5,3,2] ...]
so created this version