answersLogoWhite

0

Implement an isPrime method int JAVA with this:

int count = 0, num = 2;

while(count < 50) {

if(isPrime(num)) count++;

num++;

}

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga

Add your answer:

Earn +20 pts
Q: Write a method which displays first 50 prime numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp