how to find prime and composite numbers in java on an array

Solutions on MaxInterview for how to find prime and composite numbers in java on an array by the best coders in the world

showing results for - "how to find prime and composite numbers in java on an array"
Nicola
02 Oct 2016
1Enter size of the array: 5
2
3Enter a number: 3
4
5Enter a number: 2
6
7Enter a number: 6
8
9Enter a number: 7
10
11Enter a number: 9
12
13There are 3 prime numbers.
14
15There are 2 composite numbers.
16