Looking for variant approach/sketch

:+1:
Think it can't be faster, maybe add keyword inline?
the implementation misses fact(0) by the way

inline uint32_t fac(uint8_t n) {
   static uint32_t facvals[]={1, 1, 2, 6, 24, 120, etc};
   return facvals[n];
}