I have toubles with a prog. I don't know how to do it! It would be so nice if someone could help me.
I have to find an algorithm to calculate all prime numbers (zB.: 2,3,5,7,11,13,...) of an Inputnumber. For example: 8!
8:2=4 4:2=2 2 is a prime number.
The output shout be systematic. Those who are the most should be displayed at first.
Thanks for your help!
i made a prog like this once but in c not java, its a lot like java i'll attach the file so you can have a look, good luck
[code] /* dont forget code tags! */ [/code]
Come visit the Café!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL