getprime can now run without creating any additional threads. This helps
testing pthreads and measuring performance of directly searching primes
from main thread versus creating one thread.
Also don't misuse ASSERT() for checking command-line input coming
from user.
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>