//Smallest Factor of a value
using System;
public class Smallestfactor
{
public static void Main()
int i,fact=1;int n=1539;
for(i=2; i<=n/i ;i++)
if((n%i)==0)
fact=i;
break;
}
Console.WriteLine("Smallest factor of "+n + " is" +fact);