Add elapsed time logic

Copied lines from brute-force program to time the sieve method