Weak factorial

The weak factorial is a factorial-related function invented by WikiRigbyDude. It is equal to the least common multiple of all numbers 1 through x.

Formally:

wf(x) = lcm(x,wf(x-1))

wf(1) = 1

The first ten weak factorial numbers are 1, 2, 6, 12, 60, 60, 420, 840, 2520, and 2520.