Untitled

mail@pastecode.io avatar
unknown
c_cpp
13 days ago
260 B
1
Indexable
Never
using namespace std;
#include <iostream>

int IsPrime(int x) {
	int count = 0;
	for (int i = 2; i < x - 1; i++)
	{
		if (x % i == 0) {
			count ++;

		}
	}

	return count;

}



int main()
{
	int x;
	cin >> x;
	cout << IsPrime(x);

}
Leave a Comment