use stream to implement infinite integer stream