PyPE solution to PE problem 8
PyPE solution to PE problem 8
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Scott Armitage
- Completed by
- Scott Armitage
Whiteboard
ProjectEule
===
Find the greatest product of five consecutive digits in the 1000-digit number:
Solution
--------
We apply a brute force solution to this problem. We obtain a list of digits
in the number, and then proceed to calculate each 5-element product and
compare it against the largest product found so far.
Answer
------
40824