Problem 313 · Medium

Super Ugly Number

Find n-th number whose prime factors are in given array.

Open the interactive visualisation