If current 1 is at prime position
if ( ( arr [ i ] == 1 ) && ( isPrime ( i ) ) ) c1 ++ ; } Console . WriteLine ( " Number ▁ of ▁ 0s ▁ = ▁ " + c0 ) ; Console . WriteLine ( " Number ▁ of ▁ 1s ▁ = ▁ " + c1 ) ; }