Live data from Hacker News

Primel – guess a 5 digit prime number – each guess must be a prime

converged.yt

101–110 of 139 posts

Re: Primel – guess a 5 digit prime number – each guess must be a prime

#102

My side-project this week has been searching for an optimal Wordle strategy. I figured it would make a great blog post but I haven't got that far yet. Step 1 is to find an optimal starting word. My most insightful finding so far has came from trying to define a cost function for comparing potential starting words. It turns out that "% of potential guesses [not] eliminated" is an excellent loss function. Importantly,…

I think single level is not enough for the best guess. There is a maximum depth ( 6 guesses ). So strategy should consider also this limit.

Re: Primel – guess a 5 digit prime number – each guess must be a prime

#103
post #31
post #18

Earlier quoted context omitted.

Same, I was so surprised to get it solved at the second row, after ~8 attempts to find a prime without the numbers that had not matched. 12347 - [solved]

It seems a lot of us came up with 12347 for the first line.

56809 is a pretty good second guess for this situation :p

Re: Primel – guess a 5 digit prime number – each guess must be a prime

#105
post #98

Earlier quoted context omitted.

You want a natural log there; ln(100000) ~ 11.5. That being said, the pool you're really working from is the numbers with last digit 1, 3, 7, or 9. One out of every 4.6 such numbers under 10^5 is prime. So just guessing until you find a prime is practical.

And you can knock out multiples of 3 by adding digits.

Sure, but that's a little more work than just looking at the last digit, so it's debatable whether it's worth the trouble.

Re: Primel – guess a 5 digit prime number – each guess must be a prime

#106

This is really cool, nice idea! Also, the following script might help to make the game more accessible (or to help you cheat :P) - // note: game doesn't seem to automatically clear at the end, so in the dev console use: // window.localStorage.clear(); // then refresh the page const prime = n => { for (let i = 2, s = Math.sqrt(n); i 1; } const generateNums = digits => ( m => [...Array(9 * m).keys()].map(i => i + m) )(…

I also cheated with a script, leading to this:

https://pastebin.com/sQtekXCW

Re: Primel – guess a 5 digit prime number – each guess must be a prime

#107

So are people just really good with numbers? I don't know any 5 digit primes nor do I know a way to calculate them on the fly.

Yeah I would really rather this just let me guess non-primes even though that would make it more challenging. Trying to find a prime by guessing randomly over and over is pretty frustrating.

Re: Primel – guess a 5 digit prime number – each guess must be a prime

#108
post #97

My side-project this week has been searching for an optimal Wordle strategy. I figured it would make a great blog post but I haven't got that far yet. Step 1 is to find an optimal starting word. My most insightful finding so far has came from trying to define a cost function for comparing potential starting words. It turns out that "% of potential guesses [not] eliminated" is an excellent loss function. Importantly,…

My first two guesses are usually AUDIO and RENTS if it helps ¯\_(ツ)_/¯

SLATE/ROUND/PICKY has been a 8/8 for getting the correct word on the 4th guess since I started using it.

Re: Primel – guess a 5 digit prime number – each guess must be a prime

#109
post #97

My side-project this week has been searching for an optimal Wordle strategy. I figured it would make a great blog post but I haven't got that far yet. Step 1 is to find an optimal starting word. My most insightful finding so far has came from trying to define a cost function for comparing potential starting words. It turns out that "% of potential guesses [not] eliminated" is an excellent loss function. Importantly,…

My first two guesses are usually AUDIO and RENTS if it helps ¯\_(ツ)_/¯

I use ADIEU to get 4 wovels, likely the same reason you picked AUDIO.
Post reply on HN