i solved AFS bt in 2.43 seconds.. there exist a sqrt(n) solution for the problem, i tried but couldn't. can someone give me a hint..i used a modified seive to solve this problem