Im bad at Java oof
Warhawk947 (340)

A project I made for school.

How did this get so many upvotes thanks guys

cheers, warhawk947

You are viewing a single comment. View All
Highwayman (1035)

@Warhawk947
C++ example because I’m too lazy rn.

for(int i = 0,num_to_check = 2;i < primes_numbers_to_gen;num_to_check++){
  if(isPrime(num_to_check)){
    std::cout << num_to_check;
    i++;
  }
}

This just goes to show that this probably isn’t)t the best idea.
Just my opinion.