little application that calculates prime numbers