Solution for http://www.spoj.com/problems/DIVSUM/

still getting Timeout