solved euler 72 using farey sequence