3 ms·Since we're playing code golf, here's q/kdb+: factorial:{prd 1+til x}by chrisaycock 16y agoSince we're playing code golf, here's q/kdb+: factorial:{prd 1+til x}