Hmmm.  Can I use a vector for this?  Awesome.
Problem 10, Trial Division, ZOMG SLOW.