fermat test example (non functional async-task!)