Respuesta :
The important programming is as followed fr the . Takes a number as an input. 2. Prints back to the console all the primes that are larger than 1 but not larger than the number that has been entered.
What is the integer?
An integer (suggested IN-tuh-jer) is an entire range (now no longer a fractional range) that may be positive, negative, or zero. Examples of integers are: -5, 1, 5, 8, 97, and 3,043. Examples of numbers that aren't integers are: -1.43, 1 3/4, 3.
- Importedjava.util.Scanner;
- public elegance PrimeClass consumer input
- int range=sc.nextInt();//studying the range entered with the aid of using per Prime(range)}
- non-public static void Prime(int range) zero
- if(range<=2
- System.out.println("zero top numbers much less than "+range);//due to the fact top numbers begin from 2 if the range is much less than 2 and we want to print top numbers much less than 2 so zero top number else.
- for(int i=2; zero)//the range need to now no longer be divisible with the aid of using every other range apart from with the aid of using the range itself so if the range is divisible with the aid of using any other range i'm breaking
- if(count==zero) System.out.print(i+" ");
Read more about the prime number :
https://brainly.com/question/145452
#SPJ2