Prasanna Meda wrote: > - Folded all three root checkings for 3, 5 and 7 into one loop. > - Short cut the loop with 3**n < 5 **n < 7**n logic. > - Even numbers can be ruled out. > > Tested with user space programs. Test program and results attached. Thanks, Prasanna.