home.social

#factorials — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #factorials, aggregated by home.social.

fetched live
  1. Oh, so we're solving #puzzles now, huh? 🤔 Yeah, let's calculate #factorials without loops, recursion, or common sense. 🌀 Just sprinkle some Y and Z #combinators over that monstrosity and call it a "gentler" introduction. 🙄
    irfanali.org/blog/zcom #coding #humor #programming #challenges #HackerNews #ngated

  2. Ah yes, the ancient art of hiding your diary entries in a deck of cards, because #encryption is just too mainstream 🤡🔢. A blog post that is essentially a math lesson disguised as a magic trick, but without any of the actual magic. Apparently, #factorials are the new secret code—move over, spies! 🕵️‍♂️🃏
    asherfalcon.com/blog/posts/3 #diaryhacks #mathmagic #secretcodes #HackerNews #ngated

  3. :rubberduck: made colored #factorials in 2 lines :awesome:
    #python

  4. @atamakahere Surely that would need to limit itself to u8 as the input and u128 as the output? And even then you'd need a hard limit enforced on the input value because 255! is equal to more than 3.35E104, whereas u128::MAX is less than 3.5E38.

    In fact, the biggest number which fits is 34! equal to roughly 2.95E38.

    Factorials grow up so fast.

  5. I sent that 1000! picture to a friend on #Hangouts (which #Google hasn't shut down... yet), and my friend commented on the large number of 0s at the end of the value.

    I assured him that that's what happens with #factorials - by 5! you've got 2*5 as a subexpression, and by 10! you've got another factor of 10, well, right there. 15 brings in another factor of 5, and by that point, you've got a backlog of 2s. 25! has six trailing zeroes, with two factors of 5 right there.

    That's #math for you.