Jump to square of prime when removing from candidates.
Stop sieving if prime*prime greater than upper bound.
Convert candidates to simple array.