Adds thread-pool implementation.
Adds is_prime function and better repr printing.