A simple prime number finding algorithm running in O(n^1.5) at worst case.