unreachable.cloud
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Arthur Besse@lemmy.ml to Programmer Humor@lemmy.mlEnglish ·
edit-2
5 hours ago

Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs

lemmy.ml

message-square
18
fedilink
228

Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs

lemmy.ml

Arthur Besse@lemmy.ml to Programmer Humor@lemmy.mlEnglish ·
edit-2
5 hours ago
message-square
18
fedilink

cross-posted from: https://lemmy.blahaj.zone/post/38950495

https://cosocial.ca/@mhoye/116111505546606451

alert-triangle
You must log in or register to comment.
  • pruwyben@discuss.tchncs.de
    link
    fedilink
    arrow-up
    3
    ·
    30 minutes ago

    Is this not at all stochastic, or do I just not know what stochastic means?

  • Evotech@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    36 minutes ago

    This but AI

  • anton@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    19 minutes ago

    deleted by creator

  • rbos@lemmy.ca
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 hours ago

    I’ve had managers who follow that exact algorithm.

  • MeetMeAtTheMovies [they/them]@hexbear.net
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 hours ago

    Warning: unused variable

    Just add it to the pile I guess

  • /home/pineapplelover@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    2 hours ago

    I’m confused, shouldn’t this be printing false no matter what the input is?

    • anton@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      ·
      17 minutes ago

      The test suite probably looks something like this:

      int tests_passed=0;
      int tests_failed=0;
      for(int i=0;i<100000;i++){
          printf("test no. %d: ", i);
          if(is_prime(i)==actually_is_prime(i)){
              printf("passed\n");
              tests_passed++;
          }else{
              printf("failed\n");
              tests_failed++;
          }
      }
      //...
      
    • Carl [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      2 hours ago

      that’s the joke, since most numbers aren’t prime, this function is technically highly accurate despite being completely useless.

    • fallaciousBasis@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      2 hours ago

      Removed by mod

      • Ænima@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        2 hours ago

        Removed by mod

  • Thekingoflorda@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    5 hours ago

    It approaches 100% accuracy

  • razen@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    4 hours ago

    But when the input is all prime numbers then the accuracy is 0.

    • fallaciousBasis@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 hours ago

      True

    • Arthur Besse@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      3 hours ago

      The Simpsons character Rainier Wolfcastle on stage with a microphone, on TV, with the caption "THAT'S THE JOKE"

      also btw icymi, this is a post about LLMs

  • sepiroth154@feddit.nl
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    6 hours ago

    You could simplify it even further by removing the int x parameter of the function…

    • obelisk_complex@piefed.ca
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      1
      ·
      5 hours ago

      So elegant! This is too valuable for GitHub, sell this directly to the Saudi government.

  • TomMasz@lemmy.world
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    6 hours ago

    95.121% of the time it works everytime.

  • idriss@lemmy.ml
    link
    fedilink
    arrow-up
    23
    arrow-down
    1
    ·
    7 hours ago

    I am screenshoting this so it will be screenshot of a screenshot of a screenshot then post it somewhere else

    • athatet@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      38 minutes ago

      ifunny

    • SharkAttak@kbin.melroy.org
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      4 hours ago

      Not even adding some watermark? smh

  • lnxtx (xe/xem/xyr)@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    6 hours ago

    But cryptography…

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 372 users / day
  • 972 users / week
  • 1.79K users / month
  • 6.06K users / 6 months
  • 1 local subscriber
  • 41.1K subscribers
  • 1.73K Posts
  • 28.7K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org