Moved prime-calculation to extra library.
Multithreading.