C # program to find number of prime numbers in a subarray and performing updates
using System ; public class GFG { static int MAX = 1000 ; static void sieveOfEratosthenes ( bool [ ] isPrime ) { isPrime [ 1 ] = false ; for ( int p = 2 ; p * p <= MAX ; p ++ ) {