Untitled

mail@pastecode.io avatar
unknown
c_cpp
8 months ago
260 B
0
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