Did you ever want to play questions?

We’re going to have to build some sort of automated thread-downloader, aren’t we, that dumps into JSON, and can start from an arbitrary post?

Can I start next week?

2 Likes

With all the Playmobil sets on the Counting thread and Lego conversations all over the place (neither of these things having been part of my childhood toy stash), I’m wondering this: did any of y’all have Playskool Building Bricks?

Didn’t I create some cool buildings with 'em?

6 Likes

Hey you guys, can you guess what I found this morning? Did you guess I got output that 144414441…144414441 with 19825 digits / (144410^ 19825-4441)/9999 was prime? Are number facts everybody’s favorite thing ever? What if I told you that 199919991999…9991999199919991 with 20801 digits / (199910^ 20801-9991)/9999 was also prime? 20801 digits!? Did anyone ever think we’d have laptop computers that could find 20,801 digit cool looking primes in about a day’s crunch while the system was being used to do other things without a hiccup when they had their first computer?

3 Likes

Do you find this to be a fun read?

(I like to throw it into my markov-sources for some obliqueness.)

2 Likes

Why did I find it fun to spot a really simple optimization - return on hitting a composite instead of continuing all the checks up to sqrt(thenumber), and then spot the other trick which to skip all the %3 in the checks that saves another hunk of time?

old (made c99 compliant):

int isprime(int thenumber)
{
        int isitprime=1,loop;
        for(loop=3 ; (isitprime) && (loop<(sqrt(thenumber)+1)) ; loop+=2)
                isitprime = (thenumber % loop);
        return(isitprime);
}

new:

int isprime(int thenumber) {
    if (thenumber%3 == 0)
      return 0;
    int loop; 
    for(loop=5 ; loop<sqrt(thenumber)+1 ; loop+=6){
        if (thenumber % loop == 0 || thenumber % (loop + 2) == 0)
          return 0;
    }
    return 1; 
}

can you see the difference?

$ time ./isprime.orig
...
real	0m15.994s
user	0m14.425s
sys	0m0.990s

$ time ./isprime.new
...
real	0m6.591s
user	0m5.574s
sys	0m0.713s

How is it that I enjoy doing this?

3 Likes

Well, aren’t you a mutant? Perhaps enjoyment of this activity is your special mutant power?

3 Likes

Could I just say that you have to be a serious mutant to be able to like even looking at C let alone optimizing it?

1 Like

Perhaps? Was it me or my friend?

2 Likes

Anyone ever sneezed so hard that for a brief moment of terror, you suspect you might have blown a hole out of your back, just underneath a shoulder blade?

7 Likes

Did the glimpse of C code make everyone flee?

3 Likes

haven’t we all been having fun talking about gamerbutts?

4 Likes

Is it fun to watch the angry young men vigilantly decrying the outrageous accusations of SJWs that threaten their way of life?

5 Likes

maybe it is because i am old and past the oooh boobies (well mostly) stage of my life? but i totally get what the videos are about and they actually have made me think about the games i play a little more and how can that be bad?

3 Likes

also isn’t it much more fun and entertaining if you have a gamer friend of the opposite sex to play with?
ETA and not in the double entendre sense…

1 Like

Aren’t her videos a fascinating and welcome viewpoint? Am I a bad person because it’s entertaining for me to watch the deeply offended young men flailing at the wind?

5 Likes

Isn’t that half the fun?

2 Likes

Is Rand Paul doing an AMA on reddit?

Yes.

2 Likes

Wouldn’t he rather fight 100 duck sized horses?

2 Likes

Can you imagine the destructive power of a horse-sized duck?

7 Likes

“Mr. Paul, do you fear that if you continue to talk like this, Donald Trump will get Bill Gates to shut your Reddit account down?”

3 Likes