Count numbers which are divisible by all the numbers from 2 to 10 | Function to return the count of numbers from 1 to n which are divisible by all the numbers from 2 to 10 ; Driver code
function countNumbers ( n ) { return ( n / 2520 ) ; } var n = 3000 ; document . write ( Math . round ( countNumbers ( n ) ) ) ;