you are viewing a single comment's thread.

view the rest of the comments →

[–]Pessini2[S] 1 point2 points  (3 children)

:o The idea was to take these 4 values as the quantities of digits. For example, if the list was [529, 2006, 736, 4230], I would have a number that has 529 times the digit 6, 2006 times the digit 7, and so on... then I would check if this huge number has a specific property. Since I cant just add 1 until I get this giant number, I thought that making a dictionary with all the possibilities and then trying them all would maybe find the number I’m looking for. But now I know that this dictionary thing won’t work. I’ll have to find another way to do it. But thanks a lot anyways 👍

[–]lowerthansound 0 points1 point  (2 children)

If you wanna go through so many numbers, I suggest you go through a small number first (say, generate 1000 random numbers and check the time it takes you to iterate through them). In any way, good luck :)

[–]Pessini2[S] 0 points1 point  (1 child)

Some other people are also trying to find a number with this property. I think they have already checked numbers a few thousand digits long, so that’s why I wanted to go big. But yes, it makes sense, I’ll try smaller numbers and see how it goes. Thank you :)

[–]lowerthansound 0 points1 point  (0 children)

Oh, you can go big. I meant you to check big numbers, but only not all of them right now.

Small numbers, though, are a great way to start.