Click here to Skip to main content
15,921,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have executed a programme to display all the prime numbers less than a certain number typed...when my number is too high why is my comp showing 0 as the output and if its moderate then some initial prime numbers are skipped like 2,3...and it is starting directly from 1000+?why is it happening so?
Posted
Comments
Jochen Arndt 20-Dec-14 11:43am    
This can't be answered without seeing the code.
Please use the green "Improve question" link to add the necessary information.
But post only those parts that are related to the problem.

1 solution

Use the Debugger! :laugh:
Stop trying to plough on ahead and wait until you have VS installed - then you can debug it and see what is happening.
The chances are that most of the problems you are meeting are down to the twenty year old compiler you are using not producing code that works well on 64 bit machines: remember that most Windows was 16 bit in those days!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900