public static void Main(string[] args)
int n = int.Parse(Console.ReadLine());
static bool SuperProstBroj(int broj)
if (ProstBroj(broj) == false)
broj = (broj - cifra) / 10;
static bool ProstBroj(int broj)
if (broj <= 1) return false;
if (broj == 2) return true;
if (broj % 2 == 0) return false;
var granica = (int)Math.Floor(Math.Sqrt(broj));
for (int i = 3; i <= granica; i += 2)