Update: 27.05.2015
In IDE optionally is launched in main thread.
Added 4 test - get prime numbers in new thread.