solved euler 29, learned about python set module after completion, which would make this faster