代码
#include <iostream>
#include 
<cstdio>
using namespace std;

int main()
{
    
int t;
    
int n;
    scanf(
"%d",&t);
    
while(t--)
    {
        scanf(
"%d",&n);
        
for(int i=2;i<=n;i++)
        {
            
while(n%i==0)
            {
                n 
/= i;
                
if(n==1)
                {
                    printf(
"%d\n",i);
                }
                
else
                {
                    printf(
"%d*",i);
                }
            }
        }
    }
    
return 0;
}