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 the input as pyramid.  215   193 124   117 237 442   218 935 347 235   320 804 522 417 345   229 601 723 835 133 124   248 202 277 433 207 263 257   359 464 504 528 516 716 871 182   461 441 426 656 863 560 380 171 923   381 348 573 533 447 632 387 176 975 449   223 711 445 645 245 543 931 532 937 541 444   330 131 333 928 377 733 017 778 839 168 197 197   131 171 522 137 217 224 291 413 528 520 227 229 928   223 626 034 683 839 053 627 310 713 999 629 817 410 121   924 622 911 233 325 139 721 218 253 223 107 233 230 124 233

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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 the input as pyramid. 

215  

193 124  

117 237 442  

218 935 347 235  

320 804 522 417 345  

229 601 723 835 133 124  

248 202 277 433 207 263 257  

359 464 504 528 516 716 871 182  

461 441 426 656 863 560 380 171 923  

381 348 573 533 447 632 387 176 975 449  

223 711 445 645 245 543 931 532 937 541 444  

330 131 333 928 377 733 017 778 839 168 197 197  

131 171 522 137 217 224 291 413 528 520 227 229 928  

223 626 034 683 839 053 627 310 713 999 629 817 410 121  

924 622 911 233 325 139 721 218 253 223 107 233 230 124 233 

Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY