Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class primi
- {
- static void Main()
- {
- int a = 2, l = 1, g = 0;
- decimal div = 0;
- string divisione;
- for (int h = 0; h < 1; )
- {
- l = 1;
- while (l <= a)
- {
- div = a / l;
- l++;
- divisione = Convert.ToString(div);
- for (int x = 0; x < divisione.Length; x++)
- {
- if (divisione[x] == ',')
- {
- goto continua;
- }
- }
- g++;
- continua: ;
- }
- if (g == 2)
- {
- Console.WriteLine(a);
- }
- a++;
- g = 0;
- }
- }
- }
Add Comment
Please, Sign In to add comment