Simple setup for creating a prime number detector, with tests as guidance