#include<iostream>
using namespace std;
long long n,cnt;
bool isPrime(int x)
{
if(x<2)
{
return false;
cout<<x<<endl;
}
for(int i=2;i*i<=x;i++)
{
if(x%i==0);
{
return false;
cout<<x<<endl;
}
}
if(10>x)
{
return true;
}
else
{
return isPrime(x/10);
}
}
int main()
{
cin>>n;
// for(long long i=2;i<=n;i++)
// {
if(isPrime(n))
{
cout<<"true";
return 0;
}
// }
// cout<<cnt;
cout<<"false";
return 0;
}
need help
就0分