Add almost prime example.

This is a translation from the C code.
fix compilation error for sqrt method call
Merge pull request #33 from jschaf/sieve_sqrt

fix compilation error for sqrt method call
Merge pull request #32 from nbarbey/master

Add almost prime example.