scvalex/UVa

136 - Ugly Numbers

Closed this issue · 1 comments

136 - Ugly Numbers

Ugh. The 506th ugly number is 995328. So, naive Erathostene's sieve is out of the game.