Factor fun | PrepBytes can someone plz tell me how o solve this in better than O(n2)