View Single Post
 
Old November 13th, 2016, 11:18 AM
Southern ZQ Southern ZQ is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post Chapter 11 Example 3 code error

When reading through the example, I input exactly the same code as the example shows, and run the program. But the result showed every number from 2 to 1000, while the program is meant to show all primes between 2 and 1000. There must be some code error given by the example. Is there anyone who also found it? And How to correct the code here?