public static void Main(String[] args) { main_class obj = new main_class(); obj.show_result(obj.check_prime(obj.read_number())); // waiting for user enter any key Console.ReadKey(); }