refactored PrimeSieve class and all files that use it.