This Java code defines a Prime class with methods to input a number, check if it is prime by dividing it by all integers from 1 to itself, and display the result.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
9 views
Practical 7
This Java code defines a Prime class with methods to input a number, check if it is prime by dividing it by all integers from 1 to itself, and display the result.