|
|||
Prime TestWrite a program that reads a positive integer from the standard input and decides whether it is a prime or not. Input SpecificationThe input contains one positive integer number. Output SpecificationThe program should write a single line to the standard output containing the string „IGEN” („yes” in Hungarian) or „NEM” („NO” in Hungarian) depending on whether the scanned number is a prime. Sample Input 1
Output for Sample Input 1
Sample Input 2
Output for Sample Input 1
Acknowledgement
This work was supported by the construction EFOP-3.4.3-16-2016-00021. The project was supported by the European Union, co-financed by the European Social Fund.
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |