My classmate, Yasya', gave me this wonderful problem when we were high school students. The problem was about Sangar Number. The word sangar itself is the Javanese language of wonderful .
Let is a Sangar Number if it satisfies the following conditions :
As an example, is a Sangar Number shown in the picture above.
Yasya' also gave me a list of integers here . He challenged me to find out how many Sangar Numbers in there.
Can you help me to solve this problem?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Here, I just want to give some clues (not the complete solution) so you can still get the enjoyment of problem solving if you haven't got the answer yet : 6 3 0 :)
With these algorithm, I can get the answer in ~ 2 0 seconds.
Alright then, happy solving guys! :D