📅  最后修改于: 2022-03-11 14:58:32.753000             🧑  作者: Mango
class Prime
{
public static void main(String args[])
{
int i,j;
if(args.length<2)
{
System.out.println("No command line Argruments ");
return;
}
int num1=Integer.parseInt(args[0]);
int num2=Integer.parseInt(args[1]);
System.out.println("Prime number between"+num1+"and" +num2+" are:");
for(i=num1;i<=num2;i++)
{
for(j=2;j