brute force prime factor finding