python/prime-factors: First working solution