Pages

Linux bash script to find Average of prime numbers in range

This post in reponse to a comment on the post " Linux script to find prime numbers in a range of numbers " The request was to find the average of all the prime numbers found in the given range.



Save the file say as average_prime_range.sh Execute it using bash.



Following is a sample output

No comments:

Post a Comment