added problem5 and refactored primesieve.m