Mah Project Euler stuff. It's probably betterto look elsewhere for the solutions, mine are inefficients.