← RoseCode

ROSECODE 255

P-sets

Philippe_57721 · Programming ·

Let P a finite set of prime numbers.

A P-set is the set of all numbers whose prime factors are in P.

For instance, if P = {2,3,5}, the corresponding P-set is {1,2,3,4,5,6,8,9,10,12,15,16,18,20,24,25,27,30,32,36,...}

The 100,000th number of this P-set is 290142196707511001929482240000000000000

What is the 100,000,000th number in the {2,3,5,7,11}-set?
[My timing : 40 sec]