Masala #VLAINDD12O
Kamyob son
Sizga bitta N soni beriladi siz esa bu kamyob son yoki kamyob son emasligini isbotlang kamyob son deb : N sonning kvadrati va ikkilanganini ayirmasi 0 ga teng bo'lsa kamyob son deb ataladi.
Kirish faylining yagona satrida N soni kiritiladi \((1 \le N \le10^{12})\)
Agar son kamyob son bo'lsa "YES" deb aks holda "NO" deb chop eting
# | input.txt | output.txt |
---|---|---|
1 |
1 |
NO |
2 |
2 |
YES |
1-test :
1**2-(1+1) != 0
2-test:
2**2-(2+2) == 0
O'ylab ko'ring masala oson.