hello all i have this code
int count = 0;
int z=0;
int a = int.Parse(textBox1.Text);
for (int i = 1; i <= a; i++)
{
if (a % i == 0)
count++;
for (int j = 1; j <= a; j++)
{
if (i * j == a)
z = j*i;
}
}
if (count > 2)
MessageBox.Show("Not Prime " + z);
else
MessageBox.Show("Prime");
now i want to know if the number is not prime so what number can divide into .... thanks for the help