print numbers 1 to 1000 without using explicit loop or conditional