So I can't show you my new whiz bang cool code
(Link to problem added by moderator: Problem 8 (View Problem))
It is currently Thu Sep 03, 2026 12:33 am
I can confirm this.WyldOne wrote:I get several errors when I try to post anything to the problem 8 topic.



The problem asks for the product of the 5 digits.Darren_Zeng wrote:99890 isn't the right answer,Why? What's the real mean of this problem?
I get the right answer.Thanks!jaap wrote:The problem asks for the product of the 5 digits.Darren_Zeng wrote:99890 isn't the right answer,Why? What's the real mean of this problem?
9*9*8*9*0 = 0
Zero is not very large, and certainly not the largest product you can get from 5 consecutive digits.

I dissected the sentence thusly:Find the greatest product of five consecutive digits in the 1000-digit number...
Anyway, if mathematicians routinely use the word "consecutive" to describe any elements that appear next to each other in a list, then I'll crawl back into my hole.Definition of CONSECUTIVE
: following one after the other in order : successive
You didn't say what language you're working with. Some, like C and Java, treat characters and integers somewhat interchangeably. And in ASCII, the digits are sequentially valued, so you can subtract the constant '0' to get the value. I have used statements like:vulcant wrote:I'm having trouble getting started at all here. I know that I'll be looking at an*an+1*an+2*an+3*an+4 when it comes to the digits but as far as expressing the digits, I'm lost. I was thinking of using the string class and elements in the string but I can't seem to do that. I don't want the answer to the puzzle but can someone help me store and display such a long number?
