Commit 1b85ee98 authored by hasan  khaddour's avatar hasan khaddour

Add Prime Number Finding Task

parent 8781fc51
......@@ -19,7 +19,7 @@ public class TaskGeometricMean extends TaskImpl {
.toArray();
// Check if all the values is poistive
boolean allPositive =Arrays.stream(doubleArray).allMatch((e)->e>0);
boolean allPositive =Arrays.stream(doubleArray).allMatch((e)->e>=0);
if(allPositive){
// Calculate the geometric mean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment