Fastest way to generate Smarandache–Wellin number

0

Given a number n find the Smarandache–Wellin number for n. Ex:

for n=2 output=23

for n=5 output=235711

Answer it in ruby or python.

given constraints are n<=70000

mrudult

Posted 2013-09-14T07:57:19.377

Reputation: 101

Question was closed 2013-09-14T12:20:10.870

Concur: the only difference between this and 6309 is whether you separate the primes with a newline. – Peter Taylor – 2013-09-14T10:21:31.303

No answers