Driver code
public static void main ( String [ ] args ) { int L = 2 , R = 60 ; System . out . println ( solve ( R ) - solve ( L - 1 ) ) ; L = 1 ; R = 1000 ; System . out . println ( solve ( R ) - solve ( L - 1 ) ) ; } }