fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int n=int.Parse(Console.ReadLine());
  8. string czyPierwsza = "TAK";
  9.  
  10. if (n == 1)
  11. {
  12. czyPierwsza = "NIE";
  13. }
  14.  
  15. for (int i = 2; i <= n / 2; i++)
  16. {
  17. if (n % i == 0)
  18. {
  19. czyPierwsza = "NIE";
  20. break;
  21. }
  22. }
  23.  
  24. Console.WriteLine(czyPierwsza);
  25. }
  26. }
Success #stdin #stdout 0s 131520KB
stdin
5
stdout
TAK