You are on page 1of 1

import java.util.

*;

class Demo

public static void main(String[] args)

Scanner sc=new Scanner(System.in);

int n=sc.nextInt();

int c=2;

while(n!=1)

if(n%c==0)

System.out.print(c+" ");

n=n/c;

else

c++;

You might also like