Skip to content

A number evaluation script that identifies even, odd, and prime numbers in an array, along with calculating the sum of primes and determining the maximum and minimum values.

Notifications You must be signed in to change notification settings

SeemabNaqvi/numbersystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

numbersystem

It is to evaluate the even and odd numbers in the array also, to find the prime numbers in the array then to find the sum of the prime numbers in the array and the max and the min number in the given array.

index.js output: 2 20 14 12 8 6 4 10 16 18 3 7 15 9 5 1 11 19 17 13

out put for app.js

4 16 13 8 35 11 27 30 sum=144 max=35 min=4

About

A number evaluation script that identifies even, odd, and prime numbers in an array, along with calculating the sum of primes and determining the maximum and minimum values.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published