Live data from Hacker News

Is This Prime?

isthisprime.com

91–100 of 139 posts

Re: Is This Prime?

#91
post #90
post #54

Earlier quoted context omitted.

Also, most composites are divisible by 2, 3 or 5, all of which are very easy to check (for 3 just sum up the digits and if the result is divisible by 3, the original number is divisible by 3). 49, 77, and 91 are the only composites under 100 that is not divisible by one of those 3 numbers, making memorizing 25 numbers not even necessary. 49 and 77 are obviously composite to me making 91 the only number I bothered mem…

53?

53 is prime

Re: Is This Prime?

#92
post #62

Earlier quoted context omitted.

How is that useful?

Frivolous memory tasks as a measurement of bureaucratic aptitude?

Lol right because I never had to memorize the multiplication tables, states capitols, electron shell levels and numbers, periodic tables, etc in the US

Re: Is This Prime?

#93
post #61

When I was a fifth grader in China, we were required to memorize all prime numbers below 100. Curious if that is common in other countries?

When I was a fifth grader we were required to memorize all prime numbers below 20.

We memorized pi to 7 decimal places... a few memorized it to 20+

Re: Is This Prime?

#97
post #37

Here is a "theorem" I learned: every number up to 100 which looks prime, is prime, except 91. Does anyone recall its name?

I agree. And I would add 51 to that.

They have stats on the most common mistakes here: https://isthisprime.com/game/record.php (loads very slowly)

51 is #1, then 57, then 1

Re: Is This Prime?

#98
If I click start, then paste some quick and dirty browser automation in the console:

  function c(){is_prime(document.getElementById('n').textContent)==="prime"?yes.click():no.click();window.setTimeout(c,1)};c()
My old laptop can guess right 16k times and get up to 4172973243025599, but then the http post to do the stats (record.php) bombs with a MySql error "Out of range value for column 'end' at row 1" :)

Re: Is This Prime?

#100
post #98

If I click start, then paste some quick and dirty browser automation in the console: function c(){is_prime(document.getElementById('n').textContent)==="prime"?yes.click():no.click();window.setTimeout(c,1)};c() My old laptop can guess right 16k times and get up to 4172973243025599, but then the http post to do the stats (record.php) bombs with a MySql error "Out of range value for column 'end' at row 1" :)

I guess it wouldn’t be HN if your side project’s database didn’t crash because you didn’t choose the right data type, haha. Looks like it gracefully failed though, could be worse. I’m afraid that the stats page is too easy to DDOS though.
Post reply on HN