Console Output for the Program: All 2-digit prime numbers: 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 9

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Console Output for the Program: All 2-digit prime numbers: 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 9

Post by answerhappygod »

Console Output for the Program:
All 2-digit prime numbers: 11 13 17 19 23 29 31 37 41 43 47 53
59 61 67 71 73 79 83 89 97
Sum of digits of all 2-digit prime numbers is 197
2.(JAVA CODE)
An Example Console Output for the Program:
Two randomly initialized arrays
-----------------------------------------------------
list1: [93, 93, -23, 17, 21, 64, -71]
list2: [92, 63, 55, -80]
After sorting
-----------------------------------------------------
list1: [-71, -23, 17, 21, 64, 93, 93]
list2: [-80, 55, 63, 92]
After merging
----------------------------------------------------
[-80, -71, -23, 17, 21, 55, 63, 64, 92, 93, 93]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply