Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include<bits/stdc++.

h>
using namespace std;

bool ck (int n)
{
int d=0;
for (int i=int(n/10);i<=n;i++) if (n%i==0) d++;
if (d==1) return true; else return false;
}
bool ts[1000];

void cy ()
{
ts[0]=true; ts[1]=false;
for (int i=10;i<=1000;i++) if (ck(i)==false) ts[i]=true;
}

int so[1000];

void ti()
{
ios_base::sync_with_stdio(0);
cin.tie(nullptr);
int k=0;
while (k<=1000)
{
int d=1;
if (ts[k]) k++;
else {so[d]=k; k++;}
}
}

int main ()
{
int n,v; cin >>n>>v;
cy();
ti();
return 0;
}

You might also like