Computer Science, asked by bhaskarnm567, 9 months ago

import java.io.*;
import java.util.t;
import java.text.*;
import java.math.+;
import java.util.regex.*;
E oos van WNE
public class Solution |
public static void main(String args[] ) throws Exception {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
]
]
10
11
Line
pikachu is asked T numbers .for each number he has to tell if the number of divisors of the number asked is prime or not​

Answers

Answered by arnavpandey21075
0

Answer:

Explanation:

I dont get your question

Answered by mariospartan
1

Explanation:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

 int num,b,c, T;

                Scanner x = new Scanner(System.in);

                System.out.println("Enter count of numbers:");

                T = x.nextInt();

                for(int i=0;i<T;i++)

                {

                 Scanner s=new Scanner(System.in);

                 System.out.println("Enter Number");

                 num =s.nextInt();

                 b=1;

                 c=0;

                  while(b<= num)

                     {

                         if((num%b)==0)

                            c=c+1;

                            b++;

                     }

                      if(c==2)

                      System.out.println(num +" is absolutely a prime number");

                      else

                      System.out.println(num +" is absolutely not a prime number");

            }

}

}

Here "for loop" helps us to get continuous input of numbers.

To Know more:

https://brainly.in/question/1228807

Write Java program to input a number use function int Armstrong (int n) to receive the number the function returns 1 if number is Armstrong, otherwise 0

https://brainly.in/question/10465720

Java program using scanner to print no.s between 100 to 200 that do not have 0 at any position​

Similar questions