First attempt of is_prime_advanced which takes values from stdin and outputs errors to stderr.