Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. I’ve been thinking about this for days.

I’ve been thinking about this for days.

Scheduled Pinned Locked Moved Uncategorized
35 Posts 29 Posters 18 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • et@mastodon.bayernE et@mastodon.bayern

    @mhoye @i0null @jonathankoren How can I unsee this?

    i0null@infosec.exchangeI This user is from outside of this forum
    i0null@infosec.exchangeI This user is from outside of this forum
    i0null@infosec.exchange
    wrote last edited by
    #20

    @et @mhoye @jonathankoren
    bool mark_as_unread() {
    return true;
    }

    1 Reply Last reply
    0
    • tbortels@infosec.exchangeT tbortels@infosec.exchange

      @jonathankoren @mhoye

      The problem is its inaccuracy for smaller input sets involving low-digit-count numbers.

      Trivially fixed by hardcoding the results for 3-digit and lower input. Ship it!

      jonathankoren@sfba.socialJ This user is from outside of this forum
      jonathankoren@sfba.socialJ This user is from outside of this forum
      jonathankoren@sfba.social
      wrote last edited by
      #21

      @tbortels @mhoye https://di-mgt.com.au/primes10000.txt

      1 Reply Last reply
      0
      • mhoye@cosocial.caM mhoye@cosocial.ca

        I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

        (Via @jonathankoren )

        Link Preview Image
        ichinin@infosec.exchangeI This user is from outside of this forum
        ichinin@infosec.exchangeI This user is from outside of this forum
        ichinin@infosec.exchange
        wrote last edited by
        #22

        @mhoye Algorithms like this are used as a pre-prime testing before you do the actual prime testing that requires CPU heavy computation.

        1 Reply Last reply
        0
        • mhoye@cosocial.caM mhoye@cosocial.ca

          I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

          (Via @jonathankoren )

          Link Preview Image
          arcaneoverflow@techhub.socialA This user is from outside of this forum
          arcaneoverflow@techhub.socialA This user is from outside of this forum
          arcaneoverflow@techhub.social
          wrote last edited by
          #23

          @mhoye @jonathankoren Snort! 🙂

          1 Reply Last reply
          0
          • mhoye@cosocial.caM mhoye@cosocial.ca

            I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

            (Via @jonathankoren )

            Link Preview Image
            mehrad@fosstodon.orgM This user is from outside of this forum
            mehrad@fosstodon.orgM This user is from outside of this forum
            mehrad@fosstodon.org
            wrote last edited by
            #24

            @mhoye
            @jonathankoren
            It is one of the best one-class classifier I've ever seen. Extremely efficient and the computational time doesn't grow the larger the input gets.

            1 Reply Last reply
            0
            • mhoye@cosocial.caM mhoye@cosocial.ca

              I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

              (Via @jonathankoren )

              Link Preview Image
              ingonymous@mastodon.socialI This user is from outside of this forum
              ingonymous@mastodon.socialI This user is from outside of this forum
              ingonymous@mastodon.social
              wrote last edited by
              #25

              @mhoye @Nephele @jonathankoren
              That's prime crime

              1 Reply Last reply
              0
              • mhoye@cosocial.caM mhoye@cosocial.ca

                I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

                (Via @jonathankoren )

                Link Preview Image
                stylus@social.afront.orgS This user is from outside of this forum
                stylus@social.afront.orgS This user is from outside of this forum
                stylus@social.afront.org
                wrote last edited by
                #26

                @mhoye @silicatefondue @jonathankoren this class of algorithm is called the stopped clock algorithm. It joins the previously identified Monte Carlo and las Vegas algorithms.

                1 Reply Last reply
                0
                • mhoye@cosocial.caM mhoye@cosocial.ca

                  I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

                  (Via @jonathankoren )

                  Link Preview Image
                  http@infosec.exchangeH This user is from outside of this forum
                  http@infosec.exchangeH This user is from outside of this forum
                  http@infosec.exchange
                  wrote last edited by
                  #27

                  @mhoye @jonathankoren If you change that to:
                  return !(x&1);
                  You have improved the probability quite a lot and still fast and won't get optimized away.

                  1 Reply Last reply
                  0
                  • mhoye@cosocial.caM mhoye@cosocial.ca

                    I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

                    (Via @jonathankoren )

                    Link Preview Image
                    mjdxp@labyrinth.zoneM This user is from outside of this forum
                    mjdxp@labyrinth.zoneM This user is from outside of this forum
                    mjdxp@labyrinth.zone
                    wrote last edited by
                    #28
                    @mhoye @jonathankoren amazing, we've discovered prime numbers past 2
                    mhoye@cosocial.caM 1 Reply Last reply
                    0
                    • jonathankoren@sfba.socialJ jonathankoren@sfba.social

                      @adardis @mhoye there are no bad algorithms. There are only bad use cases.

                      mschomm@bonn.socialM This user is from outside of this forum
                      mschomm@bonn.socialM This user is from outside of this forum
                      mschomm@bonn.social
                      wrote last edited by
                      #29

                      @jonathankoren Is there a use case for Bogosort?

                      1 Reply Last reply
                      0
                      • mjdxp@labyrinth.zoneM mjdxp@labyrinth.zone
                        @mhoye @jonathankoren amazing, we've discovered prime numbers past 2
                        mhoye@cosocial.caM This user is from outside of this forum
                        mhoye@cosocial.caM This user is from outside of this forum
                        mhoye@cosocial.ca
                        wrote last edited by
                        #30

                        @mjdxp @jonathankoren This changes everything!

                        1 Reply Last reply
                        0
                        • finestructure@mastodon.socialF finestructure@mastodon.social

                          @mhoye @jonathankoren It might be sentient

                          mhoye@cosocial.caM This user is from outside of this forum
                          mhoye@cosocial.caM This user is from outside of this forum
                          mhoye@cosocial.ca
                          wrote last edited by
                          #31

                          @finestructure @jonathankoren oh shit you’re right

                          1 Reply Last reply
                          0
                          • mhoye@cosocial.caM mhoye@cosocial.ca

                            I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

                            (Via @jonathankoren )

                            Link Preview Image
                            yesbait@bsd.networkY This user is from outside of this forum
                            yesbait@bsd.networkY This user is from outside of this forum
                            yesbait@bsd.network
                            wrote last edited by
                            #32

                            @mhoye @jonathankoren can absolutely relate. Constantly trying convince my quantitative colleagues that discrete maths is different from their stochastic and AI based reasoning.

                            1 Reply Last reply
                            0
                            • mhoye@cosocial.caM mhoye@cosocial.ca

                              I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

                              (Via @jonathankoren )

                              Link Preview Image
                              tygerkrash@mastodon.ieT This user is from outside of this forum
                              tygerkrash@mastodon.ieT This user is from outside of this forum
                              tygerkrash@mastodon.ie
                              wrote last edited by
                              #33

                              @mhoye @jonathankoren thats fantastic.

                              1 Reply Last reply
                              0
                              • mhoye@cosocial.caM mhoye@cosocial.ca

                                I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

                                (Via @jonathankoren )

                                Link Preview Image
                                thelancashireman@hostux.socialT This user is from outside of this forum
                                thelancashireman@hostux.socialT This user is from outside of this forum
                                thelancashireman@hostux.social
                                wrote last edited by
                                #34

                                @mhoye @jonathankoren

                                Reminds me of another ...

                                float sin(float x) { return x; }

                                is remarkably accurate for a large proportion of the possible input values.

                                1 Reply Last reply
                                0
                                • mhoye@cosocial.caM mhoye@cosocial.ca

                                  I’ve been thinking about this for days. Incredible stochastic algorithm, gets more reliable the larger your input, incredibly fast, trivial to implement and deterministic on its inputs. It really has so much going for it.

                                  (Via @jonathankoren )

                                  Link Preview Image
                                  execin@x0r.beE This user is from outside of this forum
                                  execin@x0r.beE This user is from outside of this forum
                                  execin@x0r.be
                                  wrote last edited by
                                  #35

                                  @mhoye @jonathankoren
                                  And it’s O(1) too!

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups