Add almost prime example.

This is a translation from the C code.
Merge pull request #32 from nbarbey/master

Add almost prime example.