We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Thanks Ashraf.
This line from the explanation of the problem also confuses me a lot..
"For the first N natural numbers, find the total of the digital sums of the first P digits for all the irrational square roots x such that x≤N "
Should we perform our calculations only for the natural number given as input, or should we take it as an indicator for 'first N natural numbers?' @shashank21j
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #80: Square root digital expansion
You are viewing a single comment's thread. Return to all comments →
Thanks Ashraf. This line from the explanation of the problem also confuses me a lot..
"For the first N natural numbers, find the total of the digital sums of the first P digits for all the irrational square roots x such that x≤N "
Should we perform our calculations only for the natural number given as input, or should we take it as an indicator for 'first N natural numbers?' @shashank21j