Adding solution for problem 7 in c.
Refining solution to problem 7 by optimizing prime calculation.
Solution sped up by 88%!