problem 26 with a fancy math algorithm

repeating fraction algorithm found here:
http://mathforum.org/library/drmath/view/55869.html
I also tried filtering by numbers with only factors of 2 and 5 but
something wasnt working there and this runs in half a minute anyway