I see the post is old already but I am sure info remains relevant so I wanted to add something: I absolutely agree with Smartx21 regarding MALWAREBYTES. I used it and it worked excelently - one can get it for free online. In addition, I used CCleaner. After having used these two, my computer started working very faster.
javaAddict commented: Giving code is against the rules -1
masijade commented: The formula doesn't matter as the assignment was, probably, specifically for a loop. That said, what does the OP learn when you do the work. -2