Search:

Type: Posts; User: stommy989

Search: Search took 0.19 seconds.

  1. Re: Need help.. Counting Prime #'s up to 50 w/while loop

    I actually fixed it today...the divisor++ should have been outside of the IF statement (in bold where it should be).

    public class Lab3_2 {
    public static void main(String[] args) {
    final...
  2. Re: Need help.. Counting Prime #'s up to 50 w/while loop

    I must be getting pretty close... here's my code now:

    public class Lab3_2 {
    public static void main(String[] args) {
    final int NUMBER_OF_PRIMES = 50; // Number of primes to display
    ...
  3. Need help.. Counting Prime #'s up to 50 w/while loop

    Hi everyone,

    I'm taking an intro Java course, which I'm quite honestly, not very good at it. Anyways, we have this Prime # program that counts all the Prime #'s up to 50 using a for loop:
    ...
Results 1 to 3 of 3