updates to prime number calculator