jlai.lu
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
smitten@lemmy.blahaj.zone to Math Memes@lemmy.blahaj.zoneEnglish · 2 years ago

95.121% accuracy

i.imgur.com

message-square
4
link
fedilink
  • cross-posted to:
  • science_memes@mander.xyz
9

95.121% accuracy

i.imgur.com

smitten@lemmy.blahaj.zone to Math Memes@lemmy.blahaj.zoneEnglish · 2 years ago
message-square
4
link
fedilink
  • cross-posted to:
  • science_memes@mander.xyz
alert-triangle
You must log in or # to comment.
  • xthexder@l.sw0.com
    cake
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 years ago

    A few calculations I did last time I saw this meme (over at !programmer_humor@programming.dev):

    • There are 9592 prime numbers less than 100,000. Assuming the test suite only tests numbers 1-99999, the accuracy should actually be only 90.408%, not 95.121%
    • The 1 trillionth prime number is 29,996,224,275,833. This would mean even the first 29 trillion primes would only get you to 96.667% accuracy.

    In response to the question of how long it would take to round up to 100%:

    • The density of primes can be approximated using the Prime Number Theorem: 1/ln(x). Solving 99.9995 = 100 - 100 / ln(x) for x gives e^200000 or 7.88 × 10^86858. In other words, the universe will end before any current computer could check that many numbers.

    Edit: Fixed community link

    • CommunityLinkFixerBot@lemmings.worldB
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Hi there! Looks like you linked to a Lemmy community using a URL instead of its name, which doesn’t work well for people on different instances. Try fixing it like this: !programmer_humor@programming.dev

  • Cevilia (she/they/…)@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    It would be very easy to increase that to 100%, if you’re prepared to ignore enough data…

    • smitten@lemmy.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Actually it would approach 100% without ignoring data wouldn’t it?

Math Memes@lemmy.blahaj.zone

mathmemes@lemmy.blahaj.zone

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: !mathmemes@lemmy.blahaj.zone

Memes related to mathematics.

Rules:
1: Memes must be related to mathematics in some way.
2: No bigotry of any kind.

Visibility: Public
globe

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

  • 2 users / day
  • 9 users / week
  • 1.65K users / month
  • 4.08K users / 6 months
  • 7 local subscribers
  • 2.56K subscribers
  • 126 Posts
  • 1.49K Comments
  • Modlog
  • mods:
  • NotAUser@lemmy.blahaj.zone
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org