Task-11:
Write a Java program to count the number of Prime Numbers less than a given positive number. Solution: I code a method that check if the given number is prime or not then I set a counter of the given number and makes a loop to the length of the given number each number of the loop is checked by the method either its prime or not on each prime detection it returns true and increment the counter.