J, 1313 7 bytes
[:*/p_&q:@i.@#^]inv
p:@i.@#By itself,p: nreturns the nth prime number, and#returns the length of a list. So this phrase returns the firstlprimes, wherelis the input length.^]Raised to the input elementwise.[:*/Product of that list.
As described here , the verb _ q: n returns the prime exponents of n. So the inverse inv of that verb is exactly what we want.
J, 13 bytes
[:*/p:@i.@#^]
p:@i.@#By itself,p: nreturns the nth prime number, and#returns the length of a list. So this phrase returns the firstlprimes, wherelis the input length.^]Raised to the input elementwise.[:*/Product of that list.
J, 13 bytes
[:*/p:@i.@#^]
p:@i.@#By itself,p: nreturns the nth prime number, and#returns the length of a list. So this phrase returns the firstlprimes, wherelis the input length.^]Raised to the input elementwise.[:*/Product of that list.