Skip to content

Algorithm on finding Max Sum Path in Pyramid also avoiding prime numbers

Notifications You must be signed in to change notification settings

kuzeydemirkaya/MaxSumPath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

MaxSumPath

Euler's 18th Problem Algorithm on finding the path that gives the maximum sum on an orthogonal triangle while avoiding prime numbers.

You will have an orthogonal triangle input from a file and you need to find the maximum sum of the numbers according to given rules below;

  1. You will start from the top and move downwards to an adjacent number as in below.
  2. You are only allowed to walk downwards and diagonally.
  3. You can only walk over NON PRIME NUMBERS.
  4. You have to reach at the end of the pyramid as much as possible.
  5. You have to treat your input as pyramid.

About

Algorithm on finding Max Sum Path in Pyramid also avoiding prime numbers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages