using System;
using System.Collections.Generic;
namespace Solution
{
class Program
{
static void Main()
{
int number = int.Parse(Console.ReadLine());
if (IsPrime(number))
{
Console.WriteLine("true");
}
else
{
Console.WriteLine("false");
}
}
///
/// Checks if a number is prime.
///
/// The number to check.
/// True if the number is prime, false otherwise.
static public bool IsPrime(int number)
{
return GetDividers(number).Length == 2;
}
///
/// Gets the dividers of a number.
///
/// The number to get the dividers of.
/// An array of the dividers of the number.
static public int[] GetDividers(int number)
{
List dividers = new List();
for (int index = 1; index <= number; index++)
{
if (number % index == 0)
{
dividers.Add(index);
}
}
return dividers.ToArray();
}
}
}