On 5 Nov 2001, at 16:56, Mirsad Todorovac wrote:
Following program (implementing sieve of Eratosthenes) doesn't work as expected: after adding [i] to SET it doesn't appear to be in it!!!
Your program works as expected on GPC version 20010604 (i486-pc- mingw32msvc). I receive only:
Checking if really prime: 2 Checking if really prime: 3 [...] Checking if really prime: 241 Checking if really prime: 251
gpc --version
2.95.3 20010315 (release)
Unfortunately, "gpc --version" prints the version of GCC that GPC was built with and not the version of GPC itself. Try:
gpc -v
...to get the version of GPC, e.g.:
gpc version 20010604, based on 2.95.3 20010315 (release)
-- Dave