Question: By using Java program [ Netbeans ] Write a program which declares an array of 51 integers. Have the computer find the first 51 prime
Write a program which declares an array of 51 integers. Have the computer find the first 51 prime numbers and store them in the array. Then, using a loop (a 'for' loop) take the sum of the prime numbers. Then print the median number. Be sure not to write more than 51 prime numbers in the array, that would be writing past the end of the array and that is not good
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
