Number of unmarked integers in a special sieve | javascript Program to determine the number of unmarked integers in a special sieve ; Driver Code
function countUnmarked ( N ) { if ( N % 2 == 0 ) return N / 2 ; else return N / 2 + 1 ; } var N = 4 ; document . write ( " " + " " + countUnmarked ( N ) ) ;