answersLogoWhite

0

System.out.println("2, 3, 5, 7");

There are so few you dont need to calculate it

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

BeauBeau
You're doing better than you think!
Chat with Beau
ReneRene
Change my mind. I dare you.
Chat with Rene
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor

Add your answer:

Earn +20 pts
Q: Java code to print prime numbers from 1 to 10?
Write your answer...
Submit
Still have questions?
magnify glass
imp