using System;
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
using [Link];
namespace BRAN
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int a, b, c,maxi;
a = [Link]([Link]);
b = [Link]([Link]);
c = [Link]([Link]);
if (a > b)
maxi = a;
else
maxi = b;
if (c > maxi)
maxi = c;
[Link] = [Link]();
}
private void button2_Click(object sender, EventArgs e)
{
int c = [Link]([Link]);
int ok = 1;
for(int i=2;i*i<=c&&ok==1;i++)
if (c % i == 0)
ok = 0;
if (ok == 1)
[Link] = "Numarul este prim";
else
[Link] = "Numarul nu este prim";
private void button3_Click(object sender, EventArgs e)
{
int b = [Link]([Link]);
int d = 2, fm = 0;
string rez = "";
while (b > 1)
{
while (b % d == 0)
{
b = b / d;
fm++;
}
if (fm != 0)
{
rez = rez + [Link]() + " la " + [Link]() +
";";
}
d++;
fm = 0;
}
[Link] = rez;
}
private void button4_Click(object sender, EventArgs e)
{
[Link] = "";
[Link] = "";
[Link] = "";
[Link] = "";
[Link] = "";
[Link] = "";
}
}
}