How to write program of prime number from 1 to 100 in ui path

please help me with this

@pavan_chintha

Please check this

cheers

Hi @pavan_chintha

Check out this Video link

Regards
Gokul

hi @pavan_chintha

Checkout this video

Regards
Sudharsan

With LINQ:

primeNumbers = Enumerable.Range(1, 100).Where(Function(n) (n > 1) AndAlso Enumerable.Range(2, n-1).Count(Function(m) n mod m = 0) = 1).ToArray

where primeNumbers is an array of integer.

image

image

1 Like