# 0001, 2024-09-28 12:45:46, PTTTTTTTTTTTTTTTPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n;
if(n>=2){
while(n>1){
for(int d=2;d<=sqrt(n);d++){
if(n%d==0){
cout << d << " ";
n=n/d;
}
}
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0002, 2024-09-28 12:47:47, P---------------PP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n;
if(n>=2){
//while(n>1){
for(int d=2;d<=sqrt(n);d++){
if(n%d==0){
cout << d << " ";
n=n/d;
}
}
//}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0003, 2024-09-28 12:48:45, P---------------PP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
cin >> n;
if(n>=2){
//while(n>1){
for(long long d=2;d<=sqrt(n);d++){
if(n%d==0){
cout << d << " ";
n=n/d;
}
}
//}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0004, 2024-09-28 12:50:19, P---------------PP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
cin >> n;
if(n>=2){
//while(n>1){
for(long long d=2;d<=sqrt(n);d++){
if(n%d==0){
cout << d << " ";
n=n/d;
}
else break;
}
//}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0005, 2024-09-28 13:16:11, P---------------PP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
cin >> n;
if(n>=2){
for(long long d=2;d<=sqrt(n);d++){
if(n%d==0){
n=n/d;
cout << d << " ";
}
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0006, 2024-09-28 13:23:18, PTTxTTxTTTxxTxxxPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
long long d=2;
cin >> n;
if(n>=2){
while(n>1){
if(d*d<=n){
if(n%d==0){
n=n/d;
cout << d<< " ";
}else d++;
}cout << n;
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0007, 2024-09-28 13:24:46, PTTxTTxTTTxxTxxxPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
long long d=2;
cin >> n;
if(n>=2){
while(n>1){
if(d*d<=n){
if(n%d==0){
n=n/d;
cout << d<< " ";
}else d++;
}else cout << n;
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0008, 2024-09-28 13:51:41, Compilation error (0%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
long long d=2;
cin >> n;
if(n>=2){
while(n>1){
if(d*d<=n){
while(n%d==0){
n=n/d;
cout << d<< " ";
}else d++;
}else cout << n;
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0009, 2024-09-28 13:52:34, PTPxTPTPTPxxPxxxPP (44%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
long long d=2;
cin >> n;
if(n>=2){
while(n>1){
if(d*d<=n){
while(n%d==0){
n=n/d;
cout << d<< " ";
} d++;
}else cout << n;
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0010, 2024-09-28 13:53:40, PTPxTPxPTPxxPxxxPP (44%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
long long d=2;
cin >> n;
if(n>=2){
while(n>1){
if(d*d<=n){
while(n%d==0){
n=n/d;
cout << d<< " ";
} d++;
}else cout << n;
}
return 0;
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0011, 2024-09-28 13:56:07, PTPxTPxPTPxxPxxxPP (44%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
long long d=2;
cin >> n;
if(n>=2){
while(n>1){
if(pow(d,2)<=n){
while(n%d==0){
n=n/d;
cout << d<< " ";
} d++;
}else cout << n;
}
return 0;
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0012, 2024-09-28 13:56:55, PTPxTPxPTPxxxxxxPP (38%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
int d=2;
cin >> n;
if(n>=2){
while(n>1){
if(pow(d,2)<=n){
while(n%d==0){
n=n/d;
cout << d<< " ";
} d++;
}else cout << n;
}
return 0;
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0013, 2024-09-28 13:57:15, PTPxTPxPTPxxPxxxPP (44%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
long long d=2;
cin >> n;
if(n>=2){
while(n>1){
if(pow(d,2)<=n){
while(n%d==0){
n=n/d;
cout << d<< " ";
} d++;
}else cout << n;
}
return 0;
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0014, 2024-09-28 14:23:28, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
long long d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(pow(d,2)>n){
cout << n;
break;
}
else {
while(n%d==0){
n=n/d;
cout << d<< " ";
} d++;
}
}
return 0;
}
} |
# 0015, 2024-09-28 10:18:30, PP--------TTTTTTPP (22%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>> n;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(n>1){
if(d*d>n){
while(d%2==0){
d=d/2;
cout << 2 <<" ";
}
while(d%3==0){
d=d/3;
cout << 3 <<" ";
}
while(d%5==0){
d=d/5;
cout << 5 <<" ";
} while(d%7==0){
d=d/7;
cout << 7 <<" ";
}
while(d%11==0){
d=d/11;
cout << 11 <<" ";
}
while(d%13==0){
d=d/13;
cout << 13 <<" ";
}
return 0;
}
else{
while(n%d==0){
n/=d;
while(n%2==0){
n=n/2;
cout << 2 <<" ";
}
while(n%3==0){
n=n/3;
cout << 3 <<" ";
}
while(n%5==0){
n=n/5;
cout << 5 <<" ";
} while(n%7==0){
n=n/7;
cout << 7 <<" ";
}
while(n%11==0){
n=n/11;
cout << 11 <<" ";
}
while(n%13==0){
n=n/13;
cout << 13 <<" ";
}
return 0;
}
d+=1;
}
}
}
return 0;
} | # 0016, 2024-09-28 10:56:50, P---------TTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>> n;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(n>1){
if(d*d>n){
while(d%2==0){
d=d/2;
cout << 2 <<" ";
}
while(d%3==0){
d=d/3;
cout << 3 <<" ";
}
while(d%5==0){
d=d/5;
cout << 5 <<" ";
} while(d%7==0){
d=d/7;
cout << 7 <<" ";
}
while(d%11==0){
d=d/11;
cout << 11 <<" ";
}
while(d%13==0){
d=d/13;
cout << 13 <<" ";
}
cout<< "d";
return 0;
}
else{
while(n%d==0){
n/=d;
while(n%2==0){
n=n/2;
cout << 2 <<" ";
}
while(n%3==0){
n=n/3;
cout << 3 <<" ";
}
while(n%5==0){
n=n/5;
cout << 5 <<" ";
} while(n%7==0){
n=n/7;
cout << 7 <<" ";
}
while(n%11==0){
n=n/11;
cout << 11 <<" ";
}
while(n%13==0){
n=n/13;
cout << 13 <<" ";
}
cout<< "n";
return 0;
}
d+=1;
}
}
}
return 0;
} | # 0017, 2024-09-28 10:57:09, PP--------TTTTTTPP (22%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>> n;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(n>1){
if(d*d>n){
while(d%2==0){
d=d/2;
cout << 2 <<" ";
}
while(d%3==0){
d=d/3;
cout << 3 <<" ";
}
while(d%5==0){
d=d/5;
cout << 5 <<" ";
} while(d%7==0){
d=d/7;
cout << 7 <<" ";
}
while(d%11==0){
d=d/11;
cout << 11 <<" ";
}
while(d%13==0){
d=d/13;
cout << 13 <<" ";
}
return 0;
}
else{
while(n%d==0){
n/=d;
while(n%2==0){
n=n/2;
cout << 2 <<" ";
}
while(n%3==0){
n=n/3;
cout << 3 <<" ";
}
while(n%5==0){
n=n/5;
cout << 5 <<" ";
} while(n%7==0){
n=n/7;
cout << 7 <<" ";
}
while(n%11==0){
n=n/11;
cout << 11 <<" ";
}
while(n%13==0){
n=n/13;
cout << 13 <<" ";
}
return 0;
}
d+=1;
}
}
}
return 0;
} | # 0018, 2024-09-28 11:20:46, PTPTTPTPTPTTTTTTPP (38%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout <<n <<" ";
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
return 0;
} | # 0019, 2024-09-28 11:23:55, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout <<n <<" ";
break;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
return 0;
} | # 0020, 2024-09-28 11:24:56, PPPPPPP-P-TTTTTTPP (55%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout <<n <<" ";
break;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
break;
}
d+=1;
}
}
}
return 0;
} | # 0021, 2024-09-28 11:25:15, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout <<n <<" ";
break;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
return 0;
} | # 0022, 2024-09-28 11:26:35, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
while(n>1)
{
if(d*d>n)
{
cout <<n <<" ";
return 0;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
return 0;
} | # 0023, 2024-09-28 11:29:04, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n <<" ";
return 0;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
continue;
}
d+=1;
}
}
return 0;
}
return 0;
} | # 0024, 2024-09-28 11:31:12, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n <<" ";
return 0;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
}
if(n%d!=0){
d+=1;
}
}
}
return 0;
}
return 0;
} | # 0025, 2024-09-28 11:32:04, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n <<" ";
return 0;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
continue;
}
if(n%d!=0){
d+=1;
}
}
}
return 0;
}
return 0;
} | # 0026, 2024-09-28 11:32:16, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n <<" ";
return 0;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
break;
}
if(n%d!=0){
d+=1;
}
}
}
return 0;
}
return 0;
} | # 0027, 2024-09-28 11:32:31, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n <<" ";
return 0;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
}
if(n%d!=0){
d+=1;
}
}
}
return 0;
}
return 0;
} | # 0028, 2024-09-28 11:34:31, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n <<" ";
return 0;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
}
if(n%d!=0){
d+=1;
}
}
}
return 0;
}
return 0;
} |
# 0029, 2024-09-28 09:11:12, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d!=0)
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0030, 2024-09-28 09:13:26, -PPPPPPPPPPTPPPP-T (77%)
#include<iostream>
using namespace std;
int main()
{
unsigned long long n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d!=0)
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0031, 2024-09-28 09:13:30, -PPPPPPPPPPTPPPP-T (77%)
#include<iostream>
using namespace std;
int main()
{
unsigned long long n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d!=0)
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0032, 2024-09-28 09:42:02, PPPPPPPPPPPTPPPP-T (83%)
#include<iostream>
using namespace std;
int main()
{
unsigned long long n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d!=0)
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0033, 2024-09-28 10:02:13, -PPPPPPPPPPTPPPP-T (77%)
#include<iostream>
using namespace std;
int main()
{
unsigned long long n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d!=0)
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0034, 2024-09-28 10:03:00, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d!=0)
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0035, 2024-09-28 11:47:11, Compilation error (0%)
#include<iostream>
using namespace std;
int main()
{
long double n;
cin >> n;
int d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d!=0)
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0036, 2024-09-28 11:47:56, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d!=0)
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0037, 2024-09-28 11:48:09, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d!=0)
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0038, 2024-09-28 11:50:50, -P-P--P----T------ (16%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while(n>1)
{
d+=1;
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(!(n%d==0))
{
d+=1;
}
n/=d;
cout << d << " ";
}
}
}
} | # 0039, 2024-09-28 11:53:45, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while(n>1)
{
if(d*d<=n)
{
while(!(n%d==0))
{
d+=1;
}
n/=d;
cout << d << " ";
}
else
{
cout << n << " ";
break;
}
}
}
} | # 0040, 2024-09-28 11:59:24, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d=2;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if(d*d>n)
{
cout << n << " ";
break;
}
else
{
while(n%d==0)
{
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
} |
# 0041, 2024-09-28 12:28:22, PPP--P-P-P--P---PP (50%)
#include <iostream>
using namespace std;
int main(){
long n;
long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
cout<<d;
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else{
d+=1;
}
}
}
}
return 0;
} | # 0042, 2024-09-28 12:30:08, P---------------PP (16%)
#include <iostream>
using namespace std;
int main(){
long n;
long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else{
d+=1;
}
}
}
}
return 0;
} | # 0043, 2024-09-28 12:31:43, P-P--P-P-P--P---PP (44%)
#include <iostream>
using namespace std;
int main(){
long n;
long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
break;
}else{
while
(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
return 0;
} | # 0044, 2024-09-28 12:34:48, PPP--P-P-P--P---PP (50%)
#include <iostream>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
cout<<d;
break;
}else{
while
(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
return 0;
} | # 0045, 2024-09-28 12:35:54, P-P--P-P-P--P---PP (44%)
#include <iostream>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
break;
}else{
while
(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
return 0;
} | # 0046, 2024-09-28 12:37:02, P-P--P-P-P--P---PP (44%)
#include <iostream>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
break;
}else{
while
(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
continue;
}
}
}
return 0;
} | # 0047, 2024-09-28 12:38:26, P-P--P-P-P--P---PP (44%)
#include <iostream>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
break;
}else{
while
(n%d==0){
n/=d;
if(n==1){
cout<<d;
break;
}else{
cout<<d<<" ";
}
}
d+=1;
}
}
}
return 0;
} | # 0048, 2024-09-28 12:38:56, PPP--P-P-P--P---PP (50%)
#include <iostream>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
cout<<d;
break;
}else{
while
(n%d==0){
n/=d;
if(n==1){
cout<<d;
break;
}else{
cout<<d<<" ";
}
}
d+=1;
}
}
}
return 0;
} | # 0049, 2024-09-28 13:20:28, PPTPTTPTTTTPTTTTPP (38%)
#include <iostream>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
cout<<n;
break;
}else{
while
(n%d==0){
cout<<d<<" ";
}
d+=1;
}
}
}
return 0;
} | # 0050, 2024-09-28 13:21:15, PPTPTTPTTTTPTTTTPP (38%)
#include <iostream>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
cout<<n;
break;
}else{
while
(n%d==0){
cout<<d<<" ";
}
d+=1;
}
}
}
return 0;
} | # 0051, 2024-09-28 13:23:08, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}else{
while
(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
return 0;
} |
# 0052, 2024-09-28 09:18:10, -P---------------- (5%)
#include <iostream>
using namespace std;
int main(){
long int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}else{
if(n>1){
if((d*d)>n){
cout<<n;
}else{
if(n%d==0){
n/=d;
cout<<n;
}else {
d+=1;
}
}
}else{
}
}
} | # 0053, 2024-09-28 10:13:54, PP--------------PP (22%)
#include <iostream>
using namespace std;
int main(){
long int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
if(n>1){
if((d*d)>n){
cout<<d<<" ";
}else{
if(n%d==0){
n/=d;
cout<<n<<" ";
}else {
d+=1;
}
}
}else{
}
}
} | # 0054, 2024-09-28 10:30:18, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if((d*d)>n){
cout<<n<<" ";
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
} | # 0055, 2024-09-28 10:31:07, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}else{
while(n>1){
if((d*d)>n){
cout<<n<<" ";
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
} | # 0056, 2024-09-28 10:31:20, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if((d*d)>n){
cout<<n<<" ";
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
} | # 0057, 2024-09-28 10:32:27, PPPPPPPPPP-PP-PP-- (77%)
#include <iostream>
using namespace std;
int main(){
unsigned long long int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if((d*d)>n){
cout<<n<<" ";
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
} | # 0058, 2024-09-28 10:32:46, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if((d*d)>n){
cout<<n<<" ";
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
} | # 0059, 2024-09-28 10:37:41, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin>>n;
long long int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}else{
while(n>1){
if((d*d)>n){
cout<<n<<" ";
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
} | # 0060, 2024-09-28 10:38:06, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}else{
while(n>1){
if((d*d)>n){
cout<<n<<" ";
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
} | # 0061, 2024-09-28 10:38:38, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin>>n;
long long int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if((d*d)>n){
cout<<n<<" ";
break;
}else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
} |
# 0062, 2024-09-28 09:22:33, Compilation error (0%)
int main(){
int N,d=2;
cin>>N;
if (N<2){
cout<<"No prime factors for number less than 2";
}
else{
while (true){
if (N>1){
if (d*d>N){
cout<<d<<' ';
break;
}
else{
if (N%d==0){
N /=d;
cout<<d<<' ';
continue;
}
else{
d+=1;
continue;
}
}
}
else{
break;
}
}
}
return 0;
} | # 0063, 2024-09-28 09:25:43, -PP--P-P-PTTTTTT-- (27%)
#include <iostream>
using namespace std;
int main(){
int N,d=2;
std::cin>>N;
if (N<2){
std::cout<<"No prime factors for number less than 2";
}
else{
while (true){
if (N>1){
if (d*d>N){
std::cout<<d<<' ';
break;
}
else{
if (N%d==0){
N /=d;
std::cout<<d<<' ';
continue;
}
else{
d+=1;
continue;
}
}
}
else{
break;
}
}
}
return 0;
} | # 0064, 2024-09-28 09:33:22, -PP--P-P-PTTTTTT-- (27%)
#include <iostream>
using namespace std;
int main(){
int N,d=2;
std::cin>>N;
if (N<2){
std::cout<<"No prime factors for number less than 2";
}
else{
while (true){
if (N>1){
if (d*d>N){
std::cout<<d<<' ';
break;
}
else{
if (N%d==0){
N /=d;
std::cout<<d<<' ';
continue;
}
else{
d+=1;
continue;
}
}
}
else{
break;
}
}
}
return 0;
} | # 0065, 2024-09-28 09:33:50, -PPP-PPP-PTTTTTT-- (38%)
#include <iostream>
using namespace std;
int main(){
int N,d=2;
std::cin>>N;
if (N<2){
std::cout<<"No prime factors for number less than 2";
}
else{
while (true){
if (N>1){
if (d*d>N){
std::cout<<d<<' ';
break;
}
else{
while (true){
if (N%d==0){
N /= d;
std::cout<<d<<' ';
break;
}
else{
d+=1;
}
}
}
}
else{
break;
}
}
}
return 0;
} | # 0066, 2024-09-28 09:43:29, Compilation error (0%)
include <iostream>
using namespace std;
int main(){
int N,d=2;
std::cin>>N;
if (N<2){
std::cout<<"No prime factors for number less than 2.";
}
else{
while (true){
if (N>1){
if (d*d>N){
std::cout<<d<<' ';
break;
}
else{
while (true){
if (N%d==0){
N /= d;
std::cout<<d<<' ';
break;
}
else{
d += 1;
}
}
}
}
else{
break;
}
}
}
return 0;
} | # 0067, 2024-09-28 09:44:06, -PPP-PPP-PTTTTTT-- (38%)
#include <iostream>
using namespace std;
int main(){
int N,d=2;
std::cin>>N;
if (N<2){
std::cout<<"No prime factors for number less than 2.";
}
else{
while (true){
if (N>1){
if (d*d>N){
std::cout<<d<<' ';
break;
}
else{
while (true){
if (N%d==0){
N /= d;
std::cout<<d<<' ';
break;
}
else{
d += 1;
}
}
}
}
else{
break;
}
}
}
return 0;
} | # 0068, 2024-09-28 09:46:57, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std;
int main(){
int N,d=2;
std::cin>>N;
if (N<2){
std::cout<<"No prime factors for number less than 2.";
}
else{
while (true){
if (N>1){
if (d*d>N){
std::cout<<N<<' ';
break;
}
else{
while (true){
if (N%d==0){
N /= d;
std::cout<<d<<' ';
break;
}
else{
d += 1;
}
}
}
}
else{
break;
}
}
}
return 0;
} | # 0069, 2024-09-28 09:59:03, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std;
int main(){
int N,d=2;
std::cin>>N;
if (N<2){
std::cout<<"No prime factors for number less than 2.";
}
else{
while (true){
if (N>1){
if (d*d>N){
std::cout<<N<<' ';
break;
}
else{
while (true){
if (N%d==0){
N /= d;
std::cout<<d<<' ';
}
else{
d += 1;
break;
}
}
}
}
else{
break;
}
}
}
return 0;
} | # 0070, 2024-09-28 11:06:00, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main(){
long N,d=2;
cin>>N;
if (N<2){
cout<<"No prime factors for number less than 2.";
}
else{
while (true){
if (N>1){
if (d*d>N){
cout<<N<<' ';
break;
}
else{
while (true){
if (N%d==0){
N /= d;
cout<<d<<' ';
}
else{
d += 1;
break;
}
}
}
}
else{
break;
}
}
}
return 0;
} | # 0071, 2024-09-28 11:23:14, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long N,d=2;
cin>>N;
if (N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while (true){
if (N>1){
if (d*d>N){
cout<<N<<' ';
break;
}
else{
while (true){
if (N%d==0){
N /= d;
cout<<d<<' ';
}
else{
d += 1;
break;
}
}
}
}
else{
break;
}
}
}
return 0;
} |
# 0072, 2024-09-28 13:32:29, PP-P--P---xxxxxxxx (22%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long int n, d = 2; cin >> n;
vector<bool> isPrime(n + 1 , true);
string fact = "";
isPrime[0] = isPrime[1] = false;
for(d ; d* d < n; d++){
if(isPrime[d]){
for(long long j = d*d; j < n; j +=d){
isPrime[j] == false;
}
}
}
if(isPrime[n]){
cout << n;
}else{
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
long long int d = 2;
for(long long int i = 2 ; i < n; i ++){
while(n % i == 0){
n/= i;
cout << i << " ";
}
}
}
}
return 0;
} | # 0073, 2024-09-28 13:33:09, PP-P--P---xxxxxxxx (22%)
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
long long int n, d = 2; cin >> n;
vector<bool> isPrime(n + 1 , true);
string fact = "";
isPrime[0] = isPrime[1] = false;
for(d ; d* d < n; d++){
if(isPrime[d]){
for(long long j = d*d; j < n; j +=d){
isPrime[j] == false;
}
}
}
if(isPrime[n]){
cout << n;
}else{
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
long long int d = 2;
for(long long int i = 2 ; i < n; i ++){
while(n % i == 0){
n/= i;
cout << i << " ";
}
}
}
}
return 0;
} | # 0074, 2024-09-28 14:18:06, P------P-Pxxxxxxxx (16%)
#include <bits/stdc++.h>
using namespace std;
// ENG_EXAM_WEEK
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
long long int n, d = 2; cin >> n;
vector<bool> isPrime(n + 1 , true);
for(auto x: isPrime){
isPrime[x] = true;
}
string fact = "";
isPrime[0] = isPrime[1] = false;
for(d ; d* d < n; d++){
if(isPrime[d]){
for(long long j = d*d; j < n; j +=d){
isPrime[j] = false;
}
}
}
if(isPrime[n -1]){
cout << n;
}else{
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
long long int d = 2;
for(long long int i = 2 ; i < n; i ++){
while(n % i == 0){
n/= i;
cout << i << " ";
}
}
}
}
return 0;
} | # 0075, 2024-09-28 14:18:25, P------P-Pxxxxxxxx (16%)
#include <bits/stdc++.h>
using namespace std;
// ENG_EXAM_WEEK
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
long long int n, d = 2; cin >> n;
vector<bool> isPrime(n + 1 , true);
for(auto x: isPrime){
isPrime[x] = true;
}
string fact = "";
isPrime[0] = isPrime[1] = false;
for(d ; d* d < n; d++){
if(isPrime[d]){
for(long long j = d*d; j < n; j +=d){
isPrime[j] = false;
}
}
}
if(isPrime[n -1]){
cout << n;
}else{
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
long long int d = 2;
for(long long int i = 2 ; i < n; i ++){
while(n % i == 0){
n/= i;
cout << i << " ";
}
}
}
}
return 0;
} | # 0076, 2024-09-28 14:23:04, PTPTTPTPTPTTPTTTPP (44%)
#include <bits/stdc++.h>
using namespace std;
// ENG_EXAM_WEEK
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
long long int n, d = 2; cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while (n > 1)
{
if( d*d > n){
cout << n;
}else{
for(long long int i = 2 ; i < n; i ++){
while(n % i == 0){
n/= i;
cout << i << " ";
}
}
}
}
for(long long int i = 2 ; i < n; i ++){
while(n % i == 0){
n/= i;
cout << i << " ";
}
}
}
return 0;
} | # 0077, 2024-09-28 14:23:48, PTPTTPTPTPTTPTTTPP (44%)
#include <bits/stdc++.h>
using namespace std;
// ENG_EXAM_WEEK
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
long long int n, d = 2; cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while (n > 1)
{
if( d*d > n){
cout << n;
}else{
for(long long int i = 2 ; i < n; i ++){
while(n % i == 0){
n/= i;
cout << i << " ";
}
}
}
}
}
return 0;
} | # 0078, 2024-09-28 14:24:53, PPP--P-P-P-TP---PP (50%)
#include <bits/stdc++.h>
using namespace std;
// ENG_EXAM_WEEK
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
long long int n, d = 2; cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
if( d*d > n){
cout << n;
}else{
for(long long int i = 2 ; i < n; i ++){
while(n % i == 0){
n/= i;
cout << i << " ";
}
}
}
}
return 0;
} | # 0079, 2024-09-28 14:25:46, PPPTTPTPTPTTPTTTPP (50%)
#include <bits/stdc++.h>
using namespace std;
// ENG_EXAM_WEEK
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
long long int n, d = 2; cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while (n > 1)
{
if( d*d > n){
cout << n;
break;
}else{
for(long long int i = 2 ; i < n; i ++){
while(n % i == 0){
n/= i;
cout << i << " ";
}
}
}
}
}
return 0;
} | # 0080, 2024-09-28 14:29:06, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
// ENG_EXAM_WEEK
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
long long int n, d = 2; cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while (n > 1)
{
if( d*d > n){
cout << n;
break;
}else{
while(n % d == 0){
n/= d;
cout << d << " ";
}
d++;
}
}
}
return 0;
} |
# 0081, 2024-09-28 12:46:10, PTTxTTxTTTxTTTTTPP (16%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2." ;
}else if(N>1){
while(N>1){
if(d*d > N){
cout << N;
}else if(N% d ==0){
N /= d;
cout << N;
}else{
d += 1;
}
}
}
} | # 0082, 2024-09-28 14:16:49, PTTxTTxTTTxTTxxxPP (16%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2." ;
}else {
while(N>1){
if(d*d > N){
cout << N;
}else if(N% d ==0){
N /= d;
cout << N;
}else{
d += 1;
}
}
}
} | # 0083, 2024-09-28 14:17:53, PTTxTTxTTTxTTxxxPP (16%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2." ;
}else {
while(N>1){
if(d*d > N){
cout << N;
}else if(N% d ==0){
N /= d;
cout << N;
}else{
d += 1;
}
}
}
} | # 0084, 2024-09-28 14:37:03, PPPP--P----T----PP (38%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2." ;
}else {
while(N>1){
if(d*d > N){
cout << N << " ";
break;
}else if(N% d ==0){
N /= d;
cout << N << " ";
}else{
d += 1;
}
}
}
} | # 0085, 2024-09-28 14:41:05, PP-P--P----T----PP (33%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2." ;
}else {
while(N>1){
if(d*d > N){
cout << N << " ";
break;
}
while(N% d ==0){
N /= d;
}
d += 1;
}
}
} | # 0086, 2024-09-28 14:43:04, PP-P--P----T----PP (33%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2." ;
}else {
while(N>1){
if(d*d > N){
cout << N << " ";
break;
}
while(N% d ==0){
N /= d;
cout << N << " ";
}
d += 1;
}
}
} | # 0087, 2024-09-28 14:43:15, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2." ;
}else {
while(N>1){
if(d*d > N){
cout << N << " ";
break;
}
while(N% d ==0){
N /= d;
cout << d << " ";
}
d += 1;
}
}
} | # 0088, 2024-09-28 14:46:36, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long N;
long long d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2." ;
}else {
while(N>1){
if(d*d > N){
cout << N << " ";
break;
}
while(N% d ==0){
N /= d;
cout << d << " ";
}
d += 1;
}
}
} |
# 0089, 2024-09-28 13:25:40, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for number less than 2.";
}else{
while(true){
if(N > 1){
if(d*d > N){
cout << N << " ";
break;
}else{
if(N % d == 0){
N /= d;
cout << d << " ";
}else{
d+= 1;
}
}
}else{
break;
}
}
}
return 0;
} | # 0090, 2024-09-28 13:27:24, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for number less than 2.";
}else{
while(true){
if(N > 1){
if(d*d > N){
cout << N << " ";
break;
}else{
while(true){
if(N % d == 0){
N /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
}
}else{
break;
}
}
}
return 0;
} | # 0091, 2024-09-28 13:28:41, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while(true){
if(N > 1){
if(d*d > N){
cout << N << " ";
break;
}else{
while(true){
if(N % d == 0){
N /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
}
}else{
break;
}
}
}
return 0;
} | # 0092, 2024-09-28 13:31:57, PTTTTTTTTTTTTTTTPP (16%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while(true){
if(N > 1){
while(true){
if(d*d > N){
cout << N << " ";
break;
}else{
if(N % d == 0){
N /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
}
}else{
break;
}
}
}
return 0;
} | # 0093, 2024-09-28 13:34:40, PTPTTPTPTPTTTTTTPP (38%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while(true){
if(N > 1){
while(true){
if(d*d > N){
cout << N << " ";
break;
}else{
while(true){
if(N % d == 0){
N /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
break;
}
}
}else{
break;
}
}
}
return 0;
} | # 0094, 2024-09-28 13:36:46, PTTTTTTTTTTTTTTTPP (16%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while(true){
if(N > 1){
while(true){
if(d*d > N){
cout << N << " ";
break;
}else{
while(true){
if(N % d == 0){
N /= d;
cout << d << " ";
break;
}else{
d+= 1;
break;
}
}
break;
}
}
}else{
break;
}
}
}
return 0;
} | # 0095, 2024-09-28 14:53:59, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while(true){
if(N > 1){
if(d*d > N){
cout << N << " ";
break;
}else{
while(true){
if(N % d == 0){
N /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
continue;
}
}else{
break;
}
}
}
return 0;
} | # 0096, 2024-09-28 14:56:00, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while(true){
if(N > 1){
if(d*d > N){
cout << N << " ";
break;
}else{
while(true){
if(N % d == 0){
N /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
continue;
}
}else{
break;
}
}
}
return 0;
} |
# 0097, 2024-09-28 09:08:58, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
for (int i = 2; i*i <= n;)
{
if (n % i == 0)
{
cout << i << " ";
n /= i;
}
else
{
i++;
}
}
if (n > 1)
{
cout << n;
}
} | # 0098, 2024-09-28 09:12:10, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
for (int i = 2; i*i <= n;)
{
if (n % i == 0)
{
cout << i << " ";
n /= i;
}
else
{
++i;
}
}
if (n > 1)
{
cout << n;
}
} | # 0099, 2024-09-28 10:02:10, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
for (int i = 2; i*i <= n;)
{
if (n % i == 0)
{
cout << i << " ";
n /= i;
}
else
{
++i;
}
}
if (n > 1)
{
cout << n;
}
} | # 0100, 2024-09-28 10:55:57, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
for (int i = 2; i*i <= n;)
{
if (n % i == 0)
{
cout << i << " ";
n /= i;
}
else
{
++i;
}
}
if (n > 1)
{
cout << n;
}
} | # 0101, 2024-09-28 10:56:20, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
for (int i = 2; i*i <= n;)
{
if (n % i == 0)
{
cout << i << " ";
n /= i;
}
else
{
++i;
}
}
if (n > 1)
{
cout << n;
}
} | # 0102, 2024-09-28 10:56:32, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
for (long long i = 2; i*i <= n;)
{
if (n % i == 0)
{
cout << i << " ";
n /= i;
}
else
{
++i;
}
}
if (n > 1)
{
cout << n;
}
} | # 0103, 2024-09-28 10:59:59, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
for (int i = 2; i * i <= n;)
{
if (n % i == 0)
{
cout << i << " ";
n /= i;
}
else
{
++i;
}
}
if (n > 1)
{
cout << n;
}
} | # 0104, 2024-09-28 11:00:22, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
for (long long i = 2; i * i <= n;)
{
if (n % i == 0)
{
cout << i << " ";
n /= i;
}
else
{
++i;
}
}
if (n > 1)
{
cout << n;
}
} |
# 0105, 2024-09-28 12:28:47, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main() {
int N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (N > 1) {
if (d*d > N) {
cout << N << endl;
return 0;
}
else {
if (N % d == 0) {
while (N % d == 0) {
N /= d;
cout << d << " ";
}
}
else {
d+=1;
}
}
}
}
cout << endl;
} | # 0106, 2024-09-28 12:28:56, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main() {
int N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (N > 1) {
if (d*d > N) {
cout << N << endl;
return 0;
}
else {
if (N % d == 0) {
while (N % d == 0) {
N /= d;
cout << d << " ";
}
}
else {
d+=1;
}
}
}
}
cout << endl;
} | # 0107, 2024-09-28 12:31:50, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main() {
int N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (N > 1) {
if (d*d > N) {
cout << N << endl;
return 0;
}
else {
while (N % d == 0) {
N /= d;
cout << d << " ";
}
d+=1;
}
}
}
cout << endl;
} | # 0108, 2024-09-28 14:04:52, PPPPPPPPPP-PP---PP (77%)
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main() {
long N;
cin >> N;
int d = 2;
int index = 0;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
else {
while (N >1) {
if (d*d > N || index > 100) {
cout << N << endl;
return 0;
}
else {
while (N % d == 0) {
N/=d;
index = 0;
cout << d << " ";
}
d+=1;
index++;
}
}
}
cout << endl;
} | # 0109, 2024-09-28 14:05:07, PPPPPPPPPP-PP-PPPP (88%)
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main() {
long N;
cin >> N;
int d = 2;
int index = 0;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
else {
while (N >1) {
if (d*d > N || index > 1000) {
cout << N << endl;
return 0;
}
else {
while (N % d == 0) {
N/=d;
index = 0;
cout << d << " ";
}
d+=1;
index++;
}
}
}
cout << endl;
} | # 0110, 2024-09-28 14:05:19, PPPPPPPPPP-PPPPPPP (94%)
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main() {
long N;
cin >> N;
int d = 2;
int index = 0;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
else {
while (N >1) {
if (d*d > N || index > 100000) {
cout << N << endl;
return 0;
}
else {
while (N % d == 0) {
N/=d;
index = 0;
cout << d << " ";
}
d+=1;
index++;
}
}
}
cout << endl;
} | # 0111, 2024-09-28 14:05:31, PPPPPPPPPP-PPPPPPP (94%)
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main() {
long N;
cin >> N;
int d = 2;
int index = 0;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
else {
while (N >1) {
if (d*d > N || index > 10000000) {
cout << N << endl;
return 0;
}
else {
while (N % d == 0) {
N/=d;
index = 0;
cout << d << " ";
}
d+=1;
index++;
}
}
}
cout << endl;
} | # 0112, 2024-09-28 14:05:43, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main() {
long N;
cin >> N;
int d = 2;
int index = 0;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
else {
while (N >1) {
if (d*d > N || index > 100000000) {
cout << N << endl;
return 0;
}
else {
while (N % d == 0) {
N/=d;
index = 0;
cout << d << " ";
}
d+=1;
index++;
}
}
}
cout << endl;
} |
# 0113, 2024-09-28 13:11:42, Compilation error (0%)
#include <bits/stdc++.h>
using namespace std;
;
int main()
{
double n,x=1;
cin >> n;
int d = 2;
if (d < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if(n%d==0)
{
n/=d;
// if(x!=1)
// {
// cout << " ";
// }
cout << d << " ";
x++;
}
else d++;
if(d*d>n)
{
cout << n;
break;
}
}
}
return 0;
}
/*
1000000000
*/ | # 0114, 2024-09-28 13:13:54, --PPPPPPPPTTTTTT-- (44%)
#include <bits/stdc++.h>
using namespace std;
;
int main()
{
int n,x=1;
cin >> n;
int d = 2;
if (d < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if(n % d == 0)
{
n/=d;
// if(x!=1)
// {
// cout << " ";
// }
cout << d << " ";
x++;
}
else d++;
if(d*d>n)
{
cout << n;
break;
}
}
}
return 0;
}
/*
1000000000
*/ | # 0115, 2024-09-28 14:32:01, --PPPPPPPPTTTTTT-- (44%)
#include <bits/stdc++.h>
using namespace std;
;
int main()
{
int n, x = 1;
cin >> n;
int d = 2;
if (d < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if (n % d == 0)
{
n /= d;
if (x != 1)
cout << " ";
cout << d;
x++;
}
else
d++;
if (d * d > n)
{
if (x != 1)
cout << " ";
cout << n;
break;
}
}
}
return 0;
}
/*
1000000000
*/ | # 0116, 2024-09-28 14:33:47, -PPPPPPPPPTTTTTT-- (50%)
#include <bits/stdc++.h>
using namespace std;
;
int main()
{
int n, x = 1;
cin >> n;
int d = 2;
if (d < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if (d * d > n)
{
if (x != 1)
cout << " ";
cout << n;
break;
}
if (n % d == 0)
{
n /= d;
if (x != 1)
cout << " ";
cout << d;
x++;
}
else
d++;
}
}
return 0;
}
/*
1000000000
*/ | # 0117, 2024-09-28 15:12:37, -PPPPPPPPPPPPPPP-- (83%)
#include <bits/stdc++.h>
using namespace std;
;
int main()
{
long long n, x = 1;
cin >> n;
long long d = 2;
if (d < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if (d * d > n)
{
if (x != 1)
cout << " ";
cout << n;
break;
}
if (n % d == 0)
{
n /= d;
if (x != 1)
cout << " ";
cout << d;
x++;
}
else
d++;
}
}
return 0;
}
/*
1000000000
*/ | # 0118, 2024-09-28 15:13:53, -PPPPPPPPPPPPPPP-- (83%)
#include <bits/stdc++.h>
using namespace std;
;
int main()
{
long long n, x = 1;
cin >> n;
long long d = 2;
if (d < 2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while (n > 1)
{
if (d * d > n)
{
if (x != 1)
cout << " ";
cout << n;
break;
}
if (n % d == 0)
{
n /= d;
if (x != 1)
cout << " ";
cout << d;
x++;
}
else
d++;
}
}
return 0;
}
/*
1000000000
*/ | # 0119, 2024-09-28 15:14:54, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
;
int main()
{
long long n, x = 1;
cin >> n;
long long d = 2;
if (n< 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if (d * d > n)
{
if (x != 1)
cout << " ";
cout << n;
break;
}
if (n % d == 0)
{
n /= d;
if (x != 1)
cout << " ";
cout << d;
x++;
}
else
d++;
}
}
return 0;
}
/*
1000000000
*/ |
# 0120, 2024-09-28 09:52:54, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
long long = 2;
if (n>=2){
while(n>1){
while(d*d > n){
cout<<n<<" ";
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d += 1;
}
} else cout<<"No prime factors for numbers less than 2.";
} | # 0121, 2024-09-28 09:53:20, PTPTTPTPTPxxPxxxPP (44%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
long long d = 2;
if (n>=2){
while(n>1){
while(d*d > n){
cout<<n<<" ";
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d += 1;
}
} else cout<<"No prime factors for numbers less than 2.";
} | # 0122, 2024-09-28 09:59:24, P-P--P-P-PxxP---PP (44%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
long long d = 2;
if (n>=2){
while(n>1){
if (d*d > n){
cout<<n<<" ";
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d += 1;
}
} else cout<<"No prime factors for numbers less than 2.";
} | # 0123, 2024-09-28 10:38:39, P-P--P-P-PxxP---PP (44%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
long long d = 2;
if (!(n<2)){
while(n>1){
if (d*d > n){
cout<<n<<" ";
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d += 1;
}
} else cout<<"No prime factors for numbers less than 2.";
} | # 0124, 2024-09-28 11:01:55, P-P--P-P-PxxP---PP (44%)
#include<iostream>
using namespace std;
int main(){
long n;
cin>>n;
long d = 2;
if (!(n<2)){
while(n>1){
if (d*d > n){
cout<<n<<" ";
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d += 1;
}
} else cout<<"No prime factors for numbers less than 2.";
} | # 0125, 2024-09-28 11:07:09, P----------T----PP (16%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
long long d = 2;
if (!(n<2)){
while(n>1){
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d += 1;
}
if (d*d > n){
cout<<n<<" ";
}
} else cout<<"No prime factors for numbers less than 2.";
} | # 0126, 2024-09-28 11:07:42, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
long long d = 2;
if (!(n<2)){
while(n>1){
if (d*d > n){
cout<<n<<" ";
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d += 1;
}
} else cout<<"No prime factors for numbers less than 2.";
} |
# 0127, 2024-09-28 12:49:04, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n , d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1)
{
if ((d * d) > n)
{
cout << n;
break;
}
else if (n % d == 0)
{
n /= d;
cout << d << " ";
}
else
{
d++;
}
}
return 0;
} | # 0128, 2024-09-28 12:49:22, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n , d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1)
{
if ((d * d) > n)
{
cout << n;
break;
}
else if (n % d == 0)
{
n /= d;
cout << d << " ";
}
else
{
d++;
}
}
return 0;
} | # 0129, 2024-09-28 12:50:17, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n , d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1)
{
if ((d * d) > n)
{
cout << n;
break;
}
if (n % d == 0)
{
n /= d;
cout << d << " ";
}
else
{
d++;
}
}
return 0;
} | # 0130, 2024-09-28 12:51:27, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int n , d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1)
{
if ((d * d) > n)
{
cout << n;
break;
}
if (n % d == 0)
{
n /= d;
cout << d << " ";
}
else
{
d++;
}
}
return 0;
} | # 0131, 2024-09-28 13:39:42, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int n , d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1)
{
if ((d * d) > n)
{
cout << n;
break;
}
if (n % d == 0)
{
n /= d;
cout << d << " ";
}
else
{
d++;
if(d%2 == 0)
{
d++;
}
}
}
return 0;
} | # 0132, 2024-09-28 13:44:29, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n , d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1)
{
if ((d * d) > n)
{
cout << n;
break;
}
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d++;
}
return 0;
} | # 0133, 2024-09-28 14:08:36, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n , d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1)
{
if ((d * d) > n)
{
cout << n;
break;
}
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d++;
}
return 0;
} |
# 0134, 2024-09-28 12:41:32, PP-P--P---TTTTTTPP (33%)
#include<iostream>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}else if(N > 1) {
while(N > 1) {
if(d*d > N) {
cout << N;
exit(0);
}else if(N%d == 0) {
N /= d;
}else {
d += 1;
}
}
}
} | # 0135, 2024-09-28 12:43:25, PP-P--P---TTTTTTPP (33%)
#include<iostream>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}else if(N > 1) {
while(N > 1) {
if(d*d > N) {
cout << N;
break;
}else if(N%d == 0) {
N /= d;
}else {
d += 1;
}
}
}
} | # 0136, 2024-09-28 12:45:45, PP-P--P---TTTTTTPP (33%)
#include<iostream>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}else if(N > 1) {
while(N > 1) {
if(d*d > N) {
cout << N;
break;
exit(0);
}else if(N%d == 0) {
N /= d;
cout << d;
}else {
d += 1;
}
}
}else {
exit(0);
}
} | # 0137, 2024-09-28 12:46:23, PP-P--P---TTTTTTPP (33%)
#include<iostream>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}else if(N > 1) {
while(N > 1) {
if(d*d > N) {
cout << N;
N = 100;
break;
exit(0);
}else if(N%d == 0) {
N /= d;
cout << d;
}else {
d += 1;
}
}
}else {
exit(0);
}
} | # 0138, 2024-09-28 12:49:55, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}else if(N > 1) {
while(N > 1) {
if(d*d > N) {
cout << N;
N = 100;
break;
exit(0);
}else if(N%d == 0) {
N /= d;
cout << d << " ";
}else {
d += 1;
}
}
}else {
exit(0);
}
} | # 0139, 2024-09-28 12:52:20, Compilation error (0%)
#include<iostream>
using namespace std;
int main() {
double N,d=2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}else if(N > 1) {
while(N > 1) {
if(d*d > N) {
cout << N;
N = 100;
break;
exit(0);
}else if(N%d == 0) {
N /= d;
cout << d << " ";
}else {
d += 1;
}
}
}else {
exit(0);
}
} | # 0140, 2024-09-28 12:53:13, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main() {
long N,d=2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}else if(N > 1) {
while(N > 1) {
if(d*d > N) {
cout << N;
N = 100;
break;
exit(0);
}else if(N%d == 0) {
N /= d;
cout << d << " ";
}else {
d += 1;
}
}
}else {
exit(0);
}
} |
# 0141, 2024-09-28 09:20:18, -PP-------TTTTTT-- (11%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d =2;
if(n<2){
cout << "No prome factors fpr numbers less than 2." << endl;
}else {
while(true){
if(n>1){
if(d*d>n){
cout << d << ' '; //cheak
break;
}else if(n % d ==0){
n /= d;
cout << n << ' '; //cheak
}else{
d +=1;
}
}
}
}
} | # 0142, 2024-09-28 10:18:37, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d =2;
if(n<2){
cout << "No prome factors fpr numbers less than 2." << endl;
}else {
while(true){
if(n>1){
if(d*d>n){
cout << n << ' '; //cheak
break;
}else if(n % d ==0){
n /= d;
cout << d << ' '; //cheak
}else{
d +=1;
}
}
}
}
} | # 0143, 2024-09-28 10:20:06, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d =2;
if(n<2){
cout << "No prome factors fpr numbers less than 2." << endl;
}else {
while(n>1){
if(d*d>n){
cout << n << ' '; //cheak
break;
}else if(n % d ==0){
n /= d;
cout << d << ' '; //cheak
}else{
d +=1;
}
}
}
} | # 0144, 2024-09-28 10:25:50, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
long long d =2;
if(n<2){
cout << "No prome factors fpr numbers less than 2." << endl;
}else {
while(n>1){
if(d*d>n){
cout << n << ' '; //cheak
break;
}else if(n % d ==0){
n /= d;
cout << d << ' '; //cheak
}else{
d +=1;
}
}
}
} | # 0145, 2024-09-28 10:29:55, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
long long d =2;
if(n<2){
cout << "No prome factors fpr numbers less than 2." << endl;
}else {
while(n>1){
if(d*d>n){
cout << n << ' '; //cheak
break;
}else {
while(n%d == 0){
n /= d;
cout << d << ' ';
}
d+=1;
}
}
}
} | # 0146, 2024-09-28 10:32:21, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
long long d =2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}else {
while(n>1){
if(d*d>n){
cout << n << ' '; //cheak
break;
}else {
while(n%d == 0){
n /= d;
cout << d << ' ';
}
d+=1;
}
}
}
} | # 0147, 2024-09-28 10:32:24, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
long long d =2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}else {
while(n>1){
if(d*d>n){
cout << n << ' '; //cheak
break;
}else {
while(n%d == 0){
n /= d;
cout << d << ' ';
}
d+=1;
}
}
}
} |
# 0148, 2024-09-28 14:08:07, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main(){
int n,d;
cin >> n;
d = 2;
if(n>=2){
while(n>1){
if(d*d>n){
// cout prime n
cout << n << " ";
break;
}else{
while(n%d==0){
cout << d << " ";
n/=d;
// cout prime d;
}
d+=1;
}
}
}else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0149, 2024-09-28 14:10:47, PPPPPPPPPP-------- (55%)
#include <iostream>
using namespace std;
int main(){
unsigned short int n,d;
cin >> n;
d = 2;
if(n>=2){
while(n>1){
if(d*d>n){
// cout prime n
cout << n << " ";
break;
}else{
while(n%d==0){
cout << d << " ";
n/=d;
// cout prime d;
}
d+=1;
}
}
}else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0150, 2024-09-28 14:11:23, PPPPPPPPPP------PP (66%)
#include <iostream>
using namespace std;
int main(){
short int n;
int d;
cin >> n;
d = 2;
if(n>=2){
while(n>1){
if(d*d>n){
// cout prime n
cout << n << " ";
break;
}else{
while(n%d==0){
cout << d << " ";
n/=d;
// cout prime d;
}
d+=1;
}
}
}else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0151, 2024-09-28 14:14:51, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long int n;
int d;
cin >> n;
d = 2;
if(n>=2){
while(n>1){
if(d*d>n){
// cout prime n
cout << n << " ";
break;
}else{
while(n%d==0){
// cout << d << " ";
n/=d;
cout << d << " ";
}
d+=1;
}
}
}else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0152, 2024-09-28 14:15:43, PPPPPPPPPP-PP-PP-- (77%)
#include <iostream>
using namespace std;
int main(){
unsigned long long int n;
int d;
cin >> n;
d = 2;
if(n>=2){
while(n>1){
if(d*d>n){
// cout prime n
cout << n << " ";
break;
}else{
while(n%d==0){
// cout << d << " ";
n/=d;
cout << d << " ";
}
d+=1;
}
}
}else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0153, 2024-09-28 14:16:11, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long int n;
long long int d;
cin >> n;
d = 2;
if(n>=2){
while(n>1){
if(d*d>n){
// cout prime n
cout << n << " ";
break;
}else{
while(n%d==0){
// cout << d << " ";
n/=d;
cout << d << " ";
}
d+=1;
}
}
}else{
cout << "No prime factors for numbers less than 2.";
}
} |
# 0154, 2024-09-28 09:25:22, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less";
}
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
break;
}
else if (n % d == 0) {
n /= d;
cout << d << ' ';
}
else {
d += 1;
}
}
} | # 0155, 2024-09-28 09:26:31, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2";
}
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
break;
}
else if (n % d == 0) {
n /= d;
cout << d << ' ';
}
else {
d += 1;
}
}
} | # 0156, 2024-09-28 09:27:26, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2.";
}
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
break;
}
else if (n % d == 0) {
n /= d;
cout << d << ' ';
}
else {
d += 1;
}
}
} | # 0157, 2024-09-28 09:28:59, Compilation error (0%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2.";
break;
}
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
break;
}
else if (n % d == 0) {
n /= d;
cout << d << ' ';
}
else {
d += 1;
}
}
} | # 0158, 2024-09-28 09:29:23, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
break;
}
else if (n % d == 0) {
n /= d;
cout << d << ' ';
}
else {
d += 1;
}
}
} | # 0159, 2024-09-28 09:34:20, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
long d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
break;
}
else if (n % d == 0) {
n /= d;
cout << d << ' ';
}
else {
d += 1;
}
}
} |
# 0160, 2024-09-28 09:09:16, PPP--P-P-P--P---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long N;
cin>>N;
long long d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
cout<<d<<" ";
break;
}
else{
if(N%d==0){
N/=d;
cout<<d<<" ";
continue;
}
else{
d+=1;
continue;
}
}
}
}
} | # 0161, 2024-09-28 09:11:41, PPP--P-P-P--P---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long N;
cin>>N;
long long d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
cout<<d<<" ";
break;
}
else{
if(N%d==0){
N/=d;
cout<<d<<" ";
continue;
}
else{
d+=1;
continue;
}
}
}
}
} | # 0162, 2024-09-28 09:12:52, PPP--P-P-P--P---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long N;
cin>>N;
long long d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
cout<<d<<" ";
break;
}
else{
if(N%d==0){
N/=d;
cout<<d<<" ";
//continue;
}
else{
d+=1;
//continue;
}
}
}
}
} | # 0163, 2024-09-28 09:13:40, PPP--P-P-P--P---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long N;
cin>>N;
long long d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
cout<<d;
break;
}
else{
if(N%d==0){
N/=d;
cout<<d<<" ";
//continue;
}
else{
d+=1;
//continue;
}
}
}
}
} | # 0164, 2024-09-28 09:18:26, PPP--P-P-P--P---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long N;
cin>>N;
long long d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
cout<<d;
break;
}
else{
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d++;
continue;
}
}
}
} | # 0165, 2024-09-28 09:20:59, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long N;
cin>>N;
long long d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
cout<<N;
break;
}
else{
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
} |
# 0166, 2024-09-28 13:53:33, -T-TT-T-T-TTTTTT-- (0%)
#include<iostream>
#include<cmath>
using namespace std;
typedef unsigned long long ll;
int main()
{
long n;
cin>>n;
long d=2;
if(n<2){
cout<<"No prime factors for number less than 2.";
}else{
while(n>1){
if(d*d>n){
for(ll p=2;p<=(ll) sqrt(n);p++){
if(n%p==0){
cout<<p<<" ";
}
}
}else{
while(n%d==0){
if(n%d==0){
n/=d;
for(ll p=2;p<=(ll) sqrt(n);p++){
if(d%p==0){
cout<<p<<" ";
}
}
}
}d+=1;
}
}
}
} | # 0167, 2024-09-28 14:14:07, -T-TT-T-T-TTTTTT-- (0%)
#include<iostream>
#include<cmath>
using namespace std;
typedef unsigned long long ll;
int main()
{
long n;
cin>>n;
long d=2;
if(n<2){
cout<<"No prime factors for number less than 2.";
}else{
while(n>1){
if(d*d>n){
for(ll p=2;p<=(ll) sqrt(n);p++){
if(n%p==0){
cout<<p<<" ";
}
}
}else{
while(n%d==0){
if(n%d==0){
n/=d;
for(ll p=2;p<=(ll) sqrt(n);p++){
if(d%p==0){
cout<<p<<" ";
}
}
}
}d+=1;
}
}
}
} | # 0168, 2024-09-28 14:39:30, -TPTTPTPTPxTPxxx-- (27%)
#include<iostream>
#include<cmath>
using namespace std;
typedef unsigned long long ll;
int main()
{
long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for number less than 2.";
}else{
while(n>1){
while(d*d>n){
cout<<n<<" ";
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}d+=1;
}
}
} | # 0169, 2024-09-28 14:42:05, -TPTTPxPTPxxPxxxxx (27%)
#include<iostream>
#include<cmath>
using namespace std;
typedef unsigned long long ll;
int main()
{
ll n;
cin>>n;
ll d=2;
if(n<2){
cout<<"No prime factors for number less than 2.";
}else{
while(n>1){
while(d*d>n){
cout<<n<<" ";
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}d+=1;
}
}
} | # 0170, 2024-09-28 14:42:36, PTPTTPTPTPxxPxxxxx (33%)
#include<iostream>
#include<cmath>
using namespace std;
typedef unsigned long long ll;
int main()
{
ll n;
cin>>n;
ll d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
while(d*d>n){
cout<<n<<" ";
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}d+=1;
}
}
} | # 0171, 2024-09-28 14:50:56, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
#include<cmath>
using namespace std;
typedef unsigned long long ll;
int main()
{
long long n;
cin>>n;
long long d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}d+=1;
}
}
} |
# 0172, 2024-09-28 09:21:43, -TPTTPTPTPxTPxxx-- (27%)
#include<iostream>
using namespace std;
int main(){
long long int N;
int d=2;
cin>>N;
if(N<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(N>1){
if(d*d>N){
cout<<d<<" ";
}
else{
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
} | # 0173, 2024-09-28 09:22:04, -TPTTPTPTPxTPxxx-- (27%)
#include<iostream>
using namespace std;
int main(){
long long int N;
int d=2;
cin>>N;
if(N<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(N>1){
if(d*d>N){
cout<<d<<" ";
}
else{
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
} | # 0174, 2024-09-28 09:22:54, -P---------T------ (5%)
#include<iostream>
using namespace std;
int main(){
long long int N;
int d=2;
cin>>N;
if(N<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(N>1){
if(d*d>N){
cout<<d<<" ";
break;
}
else{
while(N%d==0){
N/=d;
cout<<d<<" ";
break;
}
d+=1;
}
}
}
} | # 0175, 2024-09-28 09:23:30, -PP--P-P-P-TP----- (33%)
#include<iostream>
using namespace std;
int main(){
long long int N;
int d=2;
cin>>N;
if(N<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(N>1){
if(d*d>N){
cout<<d<<" ";
break;
}
else{
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
} | # 0176, 2024-09-28 09:38:19, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main(){
long long int N =0;
long long int d=2;
cin>>N;
if(N<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(N>1){
if(d*d>N){
cout<<N<<" ";
break;
}
else{
while(N%d==0){
N=N/d;
cout<<d<<" ";
}
if(N%d!=0){
d+=1;
}
}
}
}
} | # 0177, 2024-09-28 09:40:52, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long int N =0;
long long int d=2;
cin>>N;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
cout<<N<<" ";
break;
}
else{
while(N%d==0){
N=N/d;
cout<<d<<" ";
}
if(N%d!=0){
d+=1;
}
}
}
}
} |
# 0178, 2024-09-28 09:09:35, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int n;cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
break;
}
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d++;
}
} | # 0179, 2024-09-28 09:11:08, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int n;cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
break;
}
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d++;
}
} | # 0180, 2024-09-28 09:13:03, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int n;cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
break;
}
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d++;
}
return 0;
} | # 0181, 2024-09-28 09:33:18, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int n;cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
break;
}
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d++;
}
return 0;
} | # 0182, 2024-09-28 10:11:27, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long long n;cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
break;
}
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d++;
}
return 0;
} | # 0183, 2024-09-28 10:11:53, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long n;cin>>n;
long long d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
break;
}
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d++;
}
return 0;
} |
# 0184, 2024-09-28 09:10:05, P-P--P-P-P-TP---PP (44%)
#include <iostream>
using namespace std;
int main() {
long long n;
int d=2;
cin >> n;
if (n<2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (n>1) {
if (d*d>n) {break; cout << n << " ";}
while (n%d==0) {
n /= d;
cout << d << " ";
}
d++;
}
}
} | # 0185, 2024-09-28 09:14:58, P-P--P-P-P--P---PP (44%)
#include <iostream>
using namespace std;
int main() {
long long n;
long long d=2;
cin >> n;
if (n<2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (n>1) {
if (d*d>n) {break; cout << n << " ";}
while (n%d==0) {
n /= d;
cout << d << " ";
}
d++;
}
}
} | # 0186, 2024-09-28 11:16:24, P-P--P-P-P--P----- (33%)
#include <iostream>
using namespace std;
int main() {
unsigned long long n;
unsigned long long d=2;
cin >> n;
if (n<2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (n>1) {
if (d*d>n) {break; cout << n << " ";}
while (n%d==0) {
n /= d;
cout << d << " ";
}
d++;
}
}
} | # 0187, 2024-09-28 11:21:40, PPPPPPPPPPPPPPPP-- (88%)
#include <iostream>
using namespace std;
int main() {
unsigned long long n;
unsigned long long d=2;
cin >> n;
if (n>1) {
while (n>1) {
if (d*d>n) {cout << n;break;}
while (n%d==0) {
n/=d;
cout << d << " ";
}
d+=1;
}
}
else cout << "No prime factors for numbers less than 2.";
} | # 0188, 2024-09-28 11:23:12, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
long long n;
long long d=2;
cin >> n;
if (n>1) {
while (n>1) {
if (d*d>n) {cout << n;break;}
while (n%d==0) {
n/=d;
cout << d << " ";
}
d+=1;
}
}
else cout << "No prime factors for numbers less than 2.";
} | # 0189, 2024-09-28 11:37:05, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
long long n;
long long d=2;
cin >> n;
if (n<2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (n>1) {
if (d*d>n) {cout << n << " ";break;}
while (n%d==0) {
n /= d;
cout << d << " ";
}
d++;
}
}
} |
# 0190, 2024-09-28 12:37:49, -PPPPPPPPPPTPPPP-- (77%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n<2){
cout << "No prime factor for number less than 2";
return 0;
}
while(n > 1){
if(d*d > n){
cout << n << ' ';
break;
}else{
if(n%d == 0){
n/=d;
cout << d << ' ';
}else{
d+=1;
}
}
}
return 0;
} | # 0191, 2024-09-28 12:46:13, ------------------ (0%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
cout << n << '\n';
long long d = 2;
if(n<2){
cout << "No prime factors for number less than 2";
return 0;
}
while(n > 1){
if(d*d > n){
cout << n << ' ';
break;
}else if(n%d == 0){
while(n%d == 0){
n/=d;
cout << d << ' ';
}
}else{
d+=1;
}
}
return 0;
} | # 0192, 2024-09-28 12:46:29, -PPPPPPPPPPPPPPP-- (83%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
//cout << n << '\n';
long long d = 2;
if(n<2){
cout << "No prime factors for number less than 2";
return 0;
}
while(n > 1){
if(d*d > n){
cout << n << ' ';
break;
}else if(n%d == 0){
while(n%d == 0){
n/=d;
cout << d << ' ';
}
}else{
d+=1;
}
}
return 0;
} | # 0193, 2024-09-28 12:46:46, -PPPPPPPPPPPPPPP-- (83%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
//cout << n << '\n';
long long d = 2;
if(n<2){
cout << "No prime factors for number less than 2.";
return 0;
}
while(n > 1){
if(d*d > n){
cout << n << ' ';
break;
}else if(n%d == 0){
while(n%d == 0){
n/=d;
cout << d << ' ';
}
}else{
d+=1;
}
}
return 0;
} | # 0194, 2024-09-28 12:47:05, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
//cout << n << '\n';
long long d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n > 1){
if(d*d > n){
cout << n << ' ';
break;
}else if(n%d == 0){
while(n%d == 0){
n/=d;
cout << d << ' ';
}
}else{
d+=1;
}
}
return 0;
} |
# 0195, 2024-09-28 09:23:13, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std;
int main(){
int x;
cin>>x;
int d=2;
if(x<2){
cout<<"No prime factors for numbers less than 2";
}
while(x>1){
if(d*d>x){
cout<<x<<" ";
break;
}
while(x%d==0){
x/=d;
cout<<d<<" ";
}
d+=1;
}
return 0;
} | # 0196, 2024-09-28 09:44:07, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main(){
int x;
cin>>x;
int d=2;
if(x<2){
cout<<"No prime factors for numbers less than 2.";
}
while(x>1){
if(d*d>x){
cout<<x<<" ";
break;
}
while(x%d==0){
x/=d;
cout<<d<<" ";
}
d+=1;
}
return 0;
} | # 0197, 2024-09-28 09:47:35, -PPPPPPPPP-PP-PP-- (72%)
#include <iostream>
using namespace std;
int main(){
unsigned long long int x;
cin>>x;
int d=2;
if(x<2){
cout<<"No prime factors for numbers less than 2";
}
while(x>1){
if(d*d>x){
cout<<x<<" ";
break;
}
while(x%d==0){
x/=d;
cout<<d<<" ";
}
d+=1;
}
return 0;
} | # 0198, 2024-09-28 10:15:15, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main(){
long int x;
cin>>x;
long int d=2;
if(x<2){
cout<<"No prime factors for numbers less than 2";
}
while(x>1){
if(d*d>x){
cout<<x<<" ";
break;
}
while(x%d==0){
x/=d;
cout<<d<<" ";
}
d+=1;
}
return 0;
} | # 0199, 2024-09-28 10:15:29, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long int x;
cin>>x;
long int d=2;
if(x<2){
cout<<"No prime factors for numbers less than 2.";
}
while(x>1){
if(d*d>x){
cout<<x<<" ";
break;
}
while(x%d==0){
x/=d;
cout<<d<<" ";
}
d+=1;
}
return 0;
} |
# 0200, 2024-09-28 12:37:57, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d=2;
if (N<2)
{
cout << "No prime factors for numbers less than 2." << endl;
}else{
while (N>1)
{
if (d*d>N)
{
cout << N ;
break;
}else{
if (N%d==0)
{
N/=d;
cout << d << " ";
}else{
d+=1;
}
}
}
}
} | # 0201, 2024-09-28 12:38:13, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d=2;
if (N<2)
{
cout << "No prime factors for numbers less than 2." << endl;
}else{
while (N>1)
{
if (d*d>N)
{
cout << N ;
break;
}else{
if (N%d==0)
{
N/=d;
cout << d << " ";
}else{
d+=1;
}
}
}
}
} | # 0202, 2024-09-28 12:38:46, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d=2;
if (N<2)
{
cout << "No prime factors for numbers less than 2." << endl;
}else{
while (N>1)
{
if (d*d>N)
{
cout << N ;
break;
}else{
if (N%d==0)
{
N/=d;
cout << d << " ";
}else{
d+=1;
}
}
}
}
} | # 0203, 2024-09-28 12:41:29, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d=2;
if (N<2)
{
cout << "No prime factors for numbers less than 2." << endl;
}else{
while (N>1)
{
if (d*d>N)
{
cout << N ;
break;
}else if (N%d==0)
{
N/=d;
cout << d << " ";
}else d++;
}
}
} | # 0204, 2024-09-28 12:45:56, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
if (N>1e+19)
{
return 0;
}
long long d=2;
if (N<2)
{
cout << "No prime factors for numbers less than 2." << endl;
}else{
while (N>1)
{
if (d*d>N)
{
cout << N ;
break;
}else if (N%d==0)
{
N/=d;
cout << d << " ";
}else d++;
}
}
} |
# 0205, 2024-09-28 13:35:45, PP---------T----PP (22%)
#include<bits/stdc++.h>
using namespace std;
void isprime(long long n){
if(n<=1)return;
for(long long i=3;i<sqrt(n);i+=2){
if(n%i==0 && n!=i){
return;
}
}
cout << n << " ";
}
int main(){
long long n;
cin >> n;
long long d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
nigga:
if(n>1){
if(d*d>n){
if(n%2==0)cout << "2 ";
for(long long i=3;i<n;i+=2){
if(n%i==0)isprime(i);
}
}
else{
if(n%d==0){
n/=d;
if(d%2==0)cout << "2 ";
for(long long i=3;i<d;i+=2){
if(n%i==0)isprime(i);
}
}
else{
d++;
goto nigga;
}
}
}
else{
return 0;
}
}
} | # 0206, 2024-09-28 14:04:27, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
void isprime(long long n){
if(n<=2)return;
for(long long i=3;i<n;i+=2){
if(n%i==0){
return;
}
}
cout << n << " ";
}
int main(){
long long n;
cin >> n;
long long d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
nigga:
if(n>1){
if(d*d>n){
if(n%2==0)cout << "2 ";
for(long long i=3;i<=n;i+=2){
if(n%i==0)isprime(i);
}
}
else{
mido:
if(n%d==0){
n/=d;
if(d%2==0){cout << "2 ";}
for(long long i=3;i<=d;i+=2){
if(d%i==0)isprime(i);
}
goto mido;
}
else{
d++;
goto nigga;
}
}
}
else{
return 0;
}
}
} | # 0207, 2024-09-28 14:05:09, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
void isprime(long long n){
if(n<=2)return;
for(long long i=3;i<sqrt(n);i+=2){
if(n%i==0){
return;
}
}
cout << n << " ";
}
int main(){
long long n;
cin >> n;
long long d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
nigga:
if(n>1){
if(d*d>n){
if(n%2==0)cout << "2 ";
for(long long i=3;i<=n;i+=2){
if(n%i==0)isprime(i);
}
}
else{
mido:
if(n%d==0){
n/=d;
if(d%2==0){cout << "2 ";}
for(long long i=3;i<=d;i+=2){
if(d%i==0)isprime(i);
}
goto mido;
}
else{
d++;
goto nigga;
}
}
}
else{
return 0;
}
}
} | # 0208, 2024-09-28 15:04:21, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
void isprime(long long n){
if(n<=2)return;
if((n%3==0 && n!=3) || (n%5==0 && n!=5) || (n%7==0 && n!=7))return;
for(long long i=3;i<sqrt(n);i+=2){
if(n%i==0){
return;
}
}
cout << n << " ";
}
int main(){
long long n;
cin >> n;
long long d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
nigga:
if(n>1){
if(d*d>n){
if(n%2==0)cout << "2 ";
for(long long i=3;i<=n;i+=2){
if(n%i==0)isprime(i);
}
}
else{
mido:
if(n%d==0){
n/=d;
if(d%2==0){cout << "2 ";}
for(long long i=3;i<=d;i+=2){
if(d%i==0)isprime(i);
}
goto mido;
}
else{
d++;
goto nigga;
}
}
}
else{
return 0;
}
}
} | # 0209, 2024-09-28 15:15:49, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
void isprime(long long n){
if(n<=2)return;
if((n%3==0 && n!=3) || (n%5==0 && n!=5) || (n%7==0 && n!=7))return;
for(long long i=3;i<sqrt(n);i+=2){
if(n%i==0){
return;
}
}
cout << n << " ";
}
bool isprime2(long long n){
if(n<=2)return 0;
if((n%3==0 && n!=3) || (n%5==0 && n!=5) || (n%7==0 && n!=7))return 0;
for(long long i=3;i<sqrt(n);i+=2){
if(n%i==0){
return 0;
}
}
cout << n << " ";
return 1;
}
int main(){
long long n;
cin >> n;
long long d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
nigga:
if(n>1){
if(d*d>n){
bool nig=1;
if(n%2==0)cout << "2 ";
else{
if(isprime2(n)){
nig=0;
}
}
for(long long i=3;i<=n;i+=2){
if(nig==0)break;
if(n%i==0)isprime(i);
}
}
else{
mido:
if(n%d==0){
n/=d;
if(d%2==0){cout << "2 ";}
else{
if(isprime2(d)){
goto popa;
}
}
for(long long i=3;i<=d;i+=2){
if(d%i==0)isprime(i);
}
popa:
goto mido;
}
else{
d++;
goto nigga;
}
}
}
else{
return 0;
}
}
} |
# 0210, 2024-09-28 09:08:12, PPP--P-P-P--P---PP (50%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N, d = 2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while(true) {
if(N > 1){
if(d*d > N) {
cout << d;
break;
}
else {
if(N % d == 0) {
N /= d;
cout << d << " ";
}
else {
d++;
}
}
}
}
}
return 0;
} | # 0211, 2024-09-28 09:13:53, PPP--P-P-P--P---PP (50%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N, d = 2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while(true) {
if(N > 1){
if(d*d > N) {
cout << d;
break;
}
else {
if(N % d == 0) {
cout << d << " ";
N = N / d;
}
else {
d = d + 1;
}
}
}
else {
break;
}
}
}
return 0;
} | # 0212, 2024-09-28 11:13:50, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
int d = 2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while(true) {
if(N > 1){
if(d*d > N) {
cout << N;
break;
}
else {
while(true) {
if(N % d == 0) {
cout << d << " ";
N = N / d;
}
else {
d = d + 1;
break;
}
}
}
}
else {
break;
}
}
}
return 0;
} | # 0213, 2024-09-28 11:13:54, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
int d = 2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while(true) {
if(N > 1){
if(d*d > N) {
cout << N;
break;
}
else {
while(true) {
if(N % d == 0) {
cout << d << " ";
N = N / d;
}
else {
d = d + 1;
break;
}
}
}
}
else {
break;
}
}
}
return 0;
} | # 0214, 2024-09-28 11:57:44, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
int d = 2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while(true) {
if(N > 1){
if(d > sqrt(N)) {
cout << N;
break;
}
else {
while(true) {
if(N % d == 0) {
cout << d << " ";
N /= d;
}
else {
d++;
break;
}
}
}
}
else {
break;
}
}
}
return 0;
} |
# 0215, 2024-09-28 09:10:14, -PPPPPPPPPPTPPPP-- (77%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
for(int i=2;i<=n;)
{
if(n%i==0){
n=n/i;
cout<<i<<" ";
}
else i++;
}
} | # 0216, 2024-09-28 09:20:07, -PPPPPPPPPPTPPPP-- (77%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
else{for(int i=2;;)
{
if(n>1){
if(i*i>n){
cout<<n;
break;
}
else{ if(n%i==0)
{ n=n/i;
cout<<i<<" ";} else i++;
}
}
}}
} | # 0217, 2024-09-28 09:33:43, -PPPPPPPPPPTPPPP-- (77%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
else{for(int i=2;;)
{
if(n>1){
if(i*i>n){
cout<<n;
break;
}
else{ if(n%i==0)
{ n=n/i;
cout<<i<<" ";} else i++;
}
}
}}
} | # 0218, 2024-09-28 09:43:09, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else{for(int i=2;;)
{
if(n>1){
if(i*i>n){
cout<<n;
break;
}
else{ if(n%i==0)
{ n=n/i;
cout<<i<<" ";} else i++;
}
}
}}
} | # 0219, 2024-09-28 10:50:42, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else{for(long long i=2;;)
{
if(n>1){
if(i*i>n){
cout<<n;
break;
}
else{ if(n%i==0)
{ n=n/i;
cout<<i<<" ";} else i++;
}
}
}}
} |
# 0220, 2024-09-28 09:18:25, P----------T----PP (16%)
#include <bits/stdc++.h>
using namespace std;
long long printcomponent(long long n){
long long component;
long long i = 2;
while(i < n){
if(n%i != 0){
i++;
}else{
component += i;
}
}
return component;
}
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
} else{
while(n > 1){
if(d*d > n){
cout << printcomponent(n);
break;
}else{
if(n%d == 0){
n /= d;
cout << printcomponent(d);
break; //try shuffle this line and above line later
}else{
d++;
}
}
}
}
} | # 0221, 2024-09-28 09:55:47, P---------------PP (16%)
#include <bits/stdc++.h>
using namespace std;
void printcomponent(long long n){
string component;
long long i = 2;
while(i < n){
n = n/i;
if(n%i == 0){
component += i;
}else{
i++;
}
}
cout << component;
}
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
} else{
while(n > 1){
if(d*d > n){
printcomponent(n);
//cout << n << " ";
break;
}else{
if(n%d == 0){
n /= d;
printcomponent(d);
cout << d << " ";
break; //try shuffle this line and above line later
}else{
d++;
}
}
}
}
} | # 0222, 2024-09-28 09:59:29, PP-P--P----P----PP (38%)
#include <bits/stdc++.h>
using namespace std;
void printcomponent(long long n){
string component;
long long i = 2;
while(i < n){
n = n/i;
if(n%i == 0){
component += i;
}else{
i++;
}
}
cout << component;
}
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
} else{
while(n > 1){
if(d*d > n){
cout << n << " ";
//cout << n << " ";
break;
}else{
if(n%d == 0){
n /= d;
printcomponent(d);
//cout << d << " ";
//break; //try shuffle this line and above line later
}else{
d++;
}
}
}
}
} | # 0223, 2024-09-28 10:00:40, PP-P--P----P----PP (38%)
#include <bits/stdc++.h>
using namespace std;
void printcomponent(long long n){
string component;
long long i = 2;
while(i < n){
n = n/i;
if(n%i == 0){
component += i;
}else{
i++;
}
}
cout << component;
}
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
} else{
while(n > 1){
if(d*d > n){
cout << n << " ";
break;
}else{
if(n%d == 0){
n /= d;
cout << d << " ";
break; //try shuffle this line and above line later
}else{
d++;
}
}
}
}
} | # 0224, 2024-09-28 10:02:06, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
void printcomponent(long long n){
string component;
long long i = 2;
while(i < n){
n = n/i;
if(n%i == 0){
component += i;
}else{
i++;
}
}
cout << component;
}
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
} else{
while(n > 1){
if(d*d > n){
cout << n << " ";
break;
}else{
while(n%d == 0){
n /= d;
cout << d << " ";
//break; //try shuffle this line and above line later
}
d++;
}
}
}
} |
# 0225, 2024-09-28 09:36:02, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main(){
long int n;
int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
//---------------
else{
while(true){
if(n>1){
if (d*d>n){
cout<<n<<" ";
break;
}
else {
if(n%d==0) {n/=d;
cout<<d<<" ";
}
else {d+=1;
}
}
}
}
}//----------------------
} | # 0226, 2024-09-28 09:36:36, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main(){
int n;
int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
//---------------
else{
while(true){
if(n>1){
if (d*d>n){
cout<<n<<" ";
break;
}
else {
if(n%d==0) {n/=d;
cout<<d<<" ";
}
else {d+=1;
}
}
}
}
}//----------------------
} | # 0227, 2024-09-28 09:37:18, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main(){
long long int n;
int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
//---------------
else{
while(true){
if(n>1){
if (d*d>n){
cout<<n<<" ";
break;
}
else {
if(n%d==0) {n/=d;
cout<<d<<" ";
}
else {d+=1;
}
}
}
}
}//----------------------
} | # 0228, 2024-09-28 09:40:48, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main(){
long long int n;
int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
//---------------
else{
while(true){
if(n>1){
if (d*d>n){
cout<<n<<" ";
break;
}
else {
if(n%d==0) {n/=d;
cout<<d<<" ";
}
else {d+=1;
}
}
}
}
}//----------------------
} | # 0229, 2024-09-28 09:41:20, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main(){
long long int n;
long long int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
//---------------
else{
while(true){
if(n>1){
if (d*d>n){
cout<<n<<" ";
break;
}
else {
if(n%d==0) {n/=d;
cout<<d<<" ";
}
else {d+=1;
}
}
}
}
}//----------------------
} |
# 0230, 2024-09-28 09:11:11, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main()
{
long long int N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while (true)
{
if (N > 1)
{
if (d * d > N)
{
// prime fac of N break
cout << N << " ";
break;
}
else
{
if (N % d == 0)
{
N /= d;
// prime fac of d and loop
cout << d << " ";
}
else
{
d += 1; // loop
}
}
}
else
{
break;
}
}
}
}
// ENG_EXAM_WEEK | # 0231, 2024-09-28 09:11:24, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main()
{
long long int N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while (true)
{
if (N > 1)
{
if (d * d > N)
{
// prime fac of N break
cout << N << " ";
break;
}
else
{
if (N % d == 0)
{
N /= d;
// prime fac of d and loop
cout << d << " ";
}
else
{
d += 1; // loop
}
}
}
else
{
break;
}
}
}
}
// ENG_EXAM_WEEK | # 0232, 2024-09-28 09:14:13, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main()
{
long long int N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while (true)
{
if (N > 1)
{
if (d * d > N)
{
// prime fac of N break
cout << N << " ";
break;
}
else
{
if (N % d == 0)
{
N /= d;
// prime fac of d and loop
cout << d << " ";
}
else
{
d += 1; // loop
}
}
}
else
{
break;
}
}
}
}
// ENG_EXAM_WEEK | # 0233, 2024-09-28 09:15:35, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main()
{
long long int N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d * d > N)
{
// prime fac of N break
cout << N << " ";
break;
}
else
{
if (N % d == 0)
{
N /= d;
// prime fac of d and loop
cout << d << " ";
}
else
{
d += 1; // loop
}
}
}
else
{
break;
}
}
}
}
// ENG_EXAM_WEEK | # 0234, 2024-09-28 09:20:12, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main()
{
long long int N;
cin >> N;
long long int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d * d > N)
{
// prime fac of N break
cout << N << " ";
break;
}
else
{
if (N % d == 0)
{
N /= d;
// prime fac of d and loop
cout << d << " ";
}
else
{
d += 1; // loop
}
}
}
else
{
break;
}
}
}
}
// ENG_EXAM_WEEK |
# 0235, 2024-09-28 09:09:19, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std ;
int main() {
int n ; cin >> n ;
int d = 2 ;
if(n < 2) {
cout << "No prime factors for number less than 2" ;
return 0 ;
}
while(n > 1) {
if(d * d > n) {
cout << n ;
return 0 ;
}
while(n % d == 0) {
n = n / d ;
cout << d << " " ;
}
d += 1 ;
}
return 0 ;
} | # 0236, 2024-09-28 09:10:18, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std ;
int main() {
long long int n ; cin >> n ;
long long int d = 2 ;
if(n < 2) {
cout << "No prime factors for number less than 2" ;
return 0 ;
}
while(n > 1) {
if(d * d > n) {
cout << n ;
return 0 ;
}
while(n % d == 0) {
n = n / d ;
cout << d << " " ;
}
d += 1 ;
}
return 0 ;
} | # 0237, 2024-09-28 09:39:41, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std ;
int main() {
long long int n ; cin >> n ;
long long int d = 2 ;
if(n < 2) {
cout << "No prime factors for number less than 2" ;
return 0 ;
}
while(n > 1) {
if(d * d > n) {
cout << n ;
return 0 ;
}
while(n % d == 0) {
n = n / d ;
cout << d << " " ;
}
d += 1 ;
}
return 0 ;
} | # 0238, 2024-09-28 09:42:19, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std ;
int main() {
long long int n ; cin >> n ;
long long int d = 2 ;
if(n < 2) {
cout << "No prime factors for number less than 2." ;
return 0 ;
}
while(n > 1) {
if(d * d > n) {
cout << n ;
return 0 ;
}
while(n % d == 0) {
n = n / d ;
cout << d << " " ;
}
d += 1 ;
}
return 0 ;
} | # 0239, 2024-09-28 09:42:48, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std ;
int main() {
long long int n ; cin >> n ;
long long int d = 2 ;
if(n < 2) {
cout << "No prime factors for numbers less than 2." ;
return 0 ;
}
while(n > 1) {
if(d * d > n) {
cout << n ;
return 0 ;
}
while(n % d == 0) {
n = n / d ;
cout << d << " " ;
}
d += 1 ;
}
return 0 ;
} |
# 0240, 2024-09-28 12:27:36, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
return 0;
}
int d=2;
while(n>1){
if(n%d==0){
cout<<d<<" ";
n = n/d;
}
else{
d++;
}
}
} | # 0241, 2024-09-28 12:29:03, PPP--P-P-P-TP---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
return 0;
}
int d=2;
while(n>1){
if(d*d>n){
cout<<d;
return 0;
}
if(n%d==0){
cout<<d<<" ";
n = n/d;
}
else{
d++;
}
}
} | # 0242, 2024-09-28 12:30:57, PPP--P-P-P-TP---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
return 0;
}
int d=2;
while(n>1){
if(d*d>n){
cout<<d;
n = n/d;
continue;
}
if(n%d==0){
cout<<d<<" ";
n = n/d;
}
else{
d++;
}
}
} | # 0243, 2024-09-28 12:34:12, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
return 0;
}
int d=2;
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}
while(n%d==0){
cout<<d<<" ";
n = n/d;
}
d++;
}
} | # 0244, 2024-09-28 14:40:17, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
return 0;
}
long long d=2;
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}
while(n%d==0){
cout<<d<<" ";
n = n/d;
}
d++;
}
} |
# 0245, 2024-09-28 13:49:40, PP---------T----PP (22%)
#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
int main(){
long long N;
cin>>N;
int d=2;
if(N<2){
cout <<"No prime factors for numbers less than 2." ;
}else if(N > 1){
if(d *d > N){
cout <<N;
}else{
if(d*d <= N){
while(d*d <= N){
if(N % d == 0){
N = N/d;
cout<<d<<" ";
if(N == 1){
cout<<d;
}
}else{
d++;
}
}
}
}
}
} | # 0246, 2024-09-28 13:52:55, PPP--P-P-P-TP---PP (50%)
#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
int main(){
long long N;
cin>>N;
int d=2;
if(N<2){
cout <<"No prime factors for numbers less than 2." ;
}else if(N > 1){
if(d *d > N){
cout <<N;
}else{
if(d*d <= N){
while(d*d <= N){
if(N % d == 0){
N = N/d;
cout<<d<<" ";
}else{
d++;
}
}
cout<< d;
}
}
}
} | # 0247, 2024-09-28 14:32:48, PPP--P-P-P--P---PP (50%)
#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
int main(){
long long N;
cin>>N;
long long d=2;
if(N<2){
cout <<"No prime factors for numbers less than 2." ;
}else if(N > 1){
if(d *d > N){
cout <<N;
}else{
if(d*d <= N){
while(d*d <= N){
if(N % d == 0){
N = N/d;
cout<<d<<" ";
}else{
d++;
}
}
cout<< d;
}
}
}
} | # 0248, 2024-09-28 15:03:44, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
int main(){
long long N;
cin>>N;
long long d=2;
if(N<2){
cout <<"No prime factors for numbers less than 2." ;
}else if(N > 1){
if(d *d > N){
cout <<N;
}else{
if(d*d <= N){
while(d*d <= N){
if(N % d == 0){
N = N/d;
cout<<d<<" ";
}else{
d++;
}
}
if(N % d ==0){
cout<< d;
}else{
cout <<N;
}
}
}
}
} |
# 0249, 2024-09-28 12:43:37, P-P--P-P-P-TP---PP (44%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n; cin >> n;
if(n < 2) cout << "No prime factors for numbers less than 2.";
else{
int d = 2;
while(n > 1){
if(d*d > n) break;
while(n%d == 0){
n /= d;
cout << d << " ";
}
d++;
}
}
return 0;
} | # 0250, 2024-09-28 13:59:41, P-P--P-P-P--P---PP (44%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n; cin >> n;
if(n < 2) cout << "No prime factors for numbers less than 2.";
else{
long long int d = 2;
while(n > 1){
if(d*d > n) break;
while(n%d == 0){
n /= d;
cout << d << " ";
}
d++;
}
}
return 0;
} | # 0251, 2024-09-28 14:02:23, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n; cin >> n;
if(n < 2) cout << "No prime factors for numbers less than 2.";
else{
long long int d = 2;
while(n > 1){
// if(d*d > n) break;
while(n%d == 0){
n /= d;
cout << d << " ";
}
d++;
}
}
return 0;
} | # 0252, 2024-09-28 14:05:29, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n; cin >> n;
if(n < 2) cout << "No prime factors for numbers less than 2.";
else{
long long int d = 2;
while(n > 1){
if(d*d > n){
cout << n << " ";
break;
}
while(n%d == 0){
n /= d;
cout << d << " ";
}
d++;
}
}
return 0;
} |
# 0253, 2024-09-28 12:33:48, -----------T------ (0%)
#include <iostream>
using namespace std;
bool prime(long long int n){
for(long long int i = 2 ; i*i < n ; i++){
if(n % i == 0)
return false;
}
return true;
}
int main(){
long long int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2";
}
else{
while(n > 1){
if(d * d > n){
for(int i = 2 ; i < n ; i++){
if(n % i == 0){
if(prime(i))
cout << i << " ";
}
}
return 0;
}
else{
while(n % d == 0){
n = n / d;
for(int i = 2 ; i < d ; i++){
if(d % i == 0){
if(prime(d))
cout << i << " ";
}
}
}
d = d + 1;
}
}
}
return 0;
} | # 0254, 2024-09-28 12:38:39, --P--P-P-P-TP----- (27%)
#include <iostream>
using namespace std;
bool prime(long long int n){
for(long long int i = 2 ; i*i < n ; i++){
if(n % i == 0)
return false;
}
return true;
}
int main(){
long long int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2";
}
else{
while(n > 1){
if(d * d > n){
for(int i = 2 ; i < n ; i++){
if(n % i == 0){
if(prime(i))
cout << i << " ";
}
}
return 0;
}
else{
while(n % d == 0){
n = n / d;
cout << d << " ";
}
d = d + 1;
}
}
}
return 0;
} | # 0255, 2024-09-28 12:40:34, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
bool prime(long long int n){
for(long long int i = 2 ; i*i < n ; i++){
if(n % i == 0)
return false;
}
return true;
}
int main(){
long long int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2";
}
else{
while(n > 1){
if(d * d > n){
cout << n << " ";
break;
}
else{
while(n % d == 0){
n = n / d;
cout << d << " ";
}
d = d + 1;
}
}
}
return 0;
} | # 0256, 2024-09-28 12:41:21, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin >> n;
long long int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d * d > n){
cout << n << " ";
break;
}
else{
while(n % d == 0){
n = n / d;
cout << d << " ";
}
d = d + 1;
}
}
}
return 0;
} |
# 0257, 2024-09-28 09:10:28, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factor for number less than 2";
}
else{
while(N>1){
if(d*d > N){
cout << N;
break;
}
else{
while(N % d == 0){
N /= d;
cout << d<<" ";
}
d+=1;
}
}
}
} | # 0258, 2024-09-28 09:11:48, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d=2;
if(N < 2){
cout << "No prime factor for number less than 2";
}
else{
while(N>1){
if(d*d > N){
cout << N;
break;
}
else{
while(N % d == 0){
N /= d;
cout << d<<" ";
}
d+=1;
}
}
}
} | # 0259, 2024-09-28 09:12:42, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2";
}
else{
while(N>1){
if(d*d > N){
cout << N;
break;
}
else{
while(N % d == 0){
N /= d;
cout << d<<" ";
}
d+=1;
}
}
}
} | # 0260, 2024-09-28 09:13:14, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d > N){
cout << N;
break;
}
else{
while(N % d == 0){
N /= d;
cout << d<<" ";
}
d+=1;
}
}
}
} |
# 0261, 2024-09-28 09:10:42, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main(){
long long n,d=2;
cin>>n;
if(n<d){
cout<<"No prime factors for numbers less than 2";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
} | # 0262, 2024-09-28 09:13:50, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main(){
long long n,d=2;
cin>>n;
if(n<d){
cout<<"No prime factors for numbers less than 2";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
return 0;
} | # 0263, 2024-09-28 09:33:51, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main(){
long long n,d=2;
cin>>n;
if(n<d){
cout<<"No prime factors for numbers less than 2";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
return 0;
} | # 0264, 2024-09-28 09:49:33, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long n,d=2;
cin>>n;
if(n<d){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
return 0;
} |
# 0265, 2024-09-28 09:17:10, -P-P--P----P------ (22%)
#include <iostream>
long long int N;
long long int d = 2;
int main()
{
std::cin >> N;
std::cout << N << '\n';
if ( N < 2 )
{
std::cout << "No prime factors for numbers less than 2";
return 0;
}
else
{
while (d*d <= N)
{
if (N%d == 0)
{
std::cout << d << " ";
N = N/d;
}
else
{
d++;
}
}
}
} | # 0266, 2024-09-28 10:41:33, ------------------ (0%)
#include <iostream>
long long int N;
long long int d = 2;
int main()
{
std::cin >> N;
if ( N < 2 )
{
std::cout << "No prime factors for numbers less than 2";
return 0;
}
else
{
while (d*d <= N)
{
if (N%d == 0)
{
std::cout << d << " ";
N = N/d;
}
else
{
d++;
}
}
}
} | # 0267, 2024-09-28 10:50:50, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
long long int N;
long long int d = 2;
int main()
{
std::cin >> N;
if ( N < 2 )
{
std::cout << "No prime factors for numbers less than 2";
return 0;
}
else
{
while (N > 1)
{
if (d*d > N)
{
std::cout << N << " ";
return 0;
}
else
{
if ( N%d == 0)
{
N = N/d;
std::cout << d << " ";
}
else
{
d += 1;
}
}
}
}
} | # 0268, 2024-09-28 10:51:22, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
long long int N;
long long int d = 2;
int main()
{
std::cin >> N;
if ( N < 2 )
{
std::cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
while (N > 1)
{
if (d*d > N)
{
std::cout << N << " ";
return 0;
}
else
{
if ( N%d == 0)
{
N = N/d;
std::cout << d << " ";
}
else
{
d += 1;
}
}
}
}
} |
# 0269, 2024-09-28 09:08:27, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main(){
long N;
cin>>N;
int d=2;
if(N<2){
cout<<"No prime factors for numbers less";
}else{
while(0==0){
if(N>1){
if(d*d>N){
cout<<N;
break;
}else if(N%d==0){
N/=d;
cout<<d<<" ";
}else{
d+=1;
}
}else{
break;
}
}
}
} | # 0270, 2024-09-28 09:09:47, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main(){
int N;
cin>>N;
int d=2;
if(N<2){
cout<<"No prime factors for numbers less";
}else{
while(0==0){
if(N>1){
if(d*d>N){
cout<<N;
break;
}else if(N%d==0){
N/=d;
cout<<d<<" ";
}else{
d+=1;
}
}else{
break;
}
}
}
} | # 0271, 2024-09-28 09:10:04, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main(){
long N;
cin>>N;
long d=2;
if(N<2){
cout<<"No prime factors for numbers less";
}else{
while(0==0){
if(N>1){
if(d*d>N){
cout<<N;
break;
}else if(N%d==0){
N/=d;
cout<<d<<" ";
}else{
d+=1;
}
}else{
break;
}
}
}
} | # 0272, 2024-09-28 09:42:24, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long N;
cin>>N;
long d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(0==0){
if(N>1){
if(d*d>N){
cout<<N;
break;
}else if(N%d==0){
N/=d;
cout<<d<<" ";
}else{
d+=1;
}
}else{
break;
}
}
}
} |
# 0273, 2024-09-28 12:30:13, --P--P-P-P--P----- (27%)
#include <bits/stdc++.h>
using namespace std;
main(){
long n,d=2;
scanf("%ld",&n);
if(n<=2) printf("No prime number factors for numbers less than 2");
else {
while(n>1){
if(d*d>n){
printf("%ld ",d);
break;
}
else if(n%d==0){
n/=d;
printf("%ld ",d);
}
else d++;
}
}
} | # 0274, 2024-09-28 12:34:25, -PPPPPPPPPPPPPPP-- (83%)
#include <bits/stdc++.h>
using namespace std;
main(){
long n,d=2;
scanf("%ld",&n);
if(n<2) printf("No prime number factors for numbers less than 2");
else {
while(n>1){
if(d*d>n){
printf("%ld ",n);
break;
}
else if(n%d==0){
n/=d;
printf("%ld ",d);
}
else d++;
}
}
} | # 0275, 2024-09-28 13:18:11, -PPPPPPPPPPPPPPP-- (83%)
#include <bits/stdc++.h>
using namespace std;
main(){
long n,d=2;
scanf("%ld",&n);
if(n<2) printf("No prime number factors for numbers less than 2.");
else {
while(n>1){
if(d*d>n){
printf("%ld ",n);
break;
}
else if(n%d==0){
n/=d;
printf("%ld ",d);
}
else d++;
}
}
} | # 0276, 2024-09-28 13:18:45, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
main(){
long n,d=2;
scanf("%ld",&n);
if(n<2) printf("No prime factors for numbers less than 2.");
else {
while(n>1){
if(d*d>n){
printf("%ld ",n);
break;
}
else if(n%d==0){
n/=d;
printf("%ld ",d);
}
else d++;
}
}
} |
# 0277, 2024-09-28 14:03:00, -TTxTTxTTTTTTTTT-- (0%)
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int d=2;
if(n<2){cout<<"No prime factors for number less than 2.";}
else{
while(n>1){
if(d*d>n){cout<<n;}
else {
if(n%d==0){
n/=d;
cout<<d<<' ';}
else{d+=1;}}
if(n<=1){break;}
}
}
} | # 0278, 2024-09-28 14:11:01, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int d=2;
if(n<2){cout<<"No prime factors for numbers less than 2.";}
else{
while(n>1){
if(d*d>n){cout<<n; break;}
else {
if(n%d==0){
n/=d;
cout<<d<<' ';}
else{d+=1; }}
}
}
} | # 0279, 2024-09-28 14:11:26, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int d=2;
if(n<2){cout<<"No prime factors for numbers less than 2.";}
else{
while(n>1){
if(d*d>n){cout<<n; break;}
else {
if(n%d==0){
n/=d;
cout<<d<<' ';}
else{d+=1; }}
}
}
} | # 0280, 2024-09-28 14:12:32, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long n;
cin>>n;
long d=2;
if(n<2){cout<<"No prime factors for numbers less than 2.";}
else{
while(n>1){
if(d*d>n){cout<<n; break;}
else {
if(n%d==0){
n/=d;
cout<<d<<' ';}
else{d+=1; }}
}
}
} |
# 0281, 2024-09-28 09:11:41, Compilation error (0%)
#include <iostream>
using namespace std;
int main(){
long N;
cin >> N;
long d = 2;
bool con = false;
if(N < 2){
cout << "No prime factors for number than 2.";
return 0;
}else{
while(true){
con = false;
if(N > 1){
while(true){
if(con)break;
if(d*d > N){
cout << "Prakob of N";
return 0;
}else{
if(N % d == 0){
N/=d;
cout << "Prakob of d";
continue;
}else{
d+=1;
con = true;
continue;
}
}
}
}else{
return 0;
}
}
} | # 0282, 2024-09-28 09:12:21, ------------------ (0%)
#include <iostream>
using namespace std;
int main(){
long N;
cin >> N;
long d = 2;
bool con = false;
if(N < 2){
cout << "No prime factors for number than 2.";
return 0;
}else{
while(true){
con = false;
if(N > 1){
while(true){
if(con)break;
if(d*d > N){
cout << "Prakob of N";
return 0;
}else{
if(N % d == 0){
N/=d;
cout << "Prakob of d";
continue;
}else{
d+=1;
con = true;
continue;
}
}
}
}else{
return 0;
}
}
}
} | # 0283, 2024-09-28 09:13:02, P---------------PP (16%)
#include <iostream>
using namespace std;
int main(){
long N;
cin >> N;
long d = 2;
bool con = false;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}else{
while(true){
con = false;
if(N > 1){
while(true){
if(con)break;
if(d*d > N){
cout << "Prakob of N";
return 0;
}else{
if(N % d == 0){
N/=d;
cout << "Prakob of d";
continue;
}else{
d+=1;
con = true;
continue;
}
}
}
}else{
return 0;
}
}
}
} | # 0284, 2024-09-28 09:16:27, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long N;
cin >> N;
long d = 2;
bool con = false;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}else{
while(true){
con = false;
if(N > 1){
while(true){
if(con)break;
if(d*d > N){
cout << N << " ";
return 0;
}else{
if(N % d == 0){
N/=d;
cout << d << " ";
continue;
}else{
d+=1;
con = true;
continue;
}
}
}
}else{
return 0;
}
}
}
} |
# 0285, 2024-09-28 12:34:18, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int n ,d = 2;
cin >> n;
if(n<2)cout << "No prime factors for numbers less than 2.";
else{
while(n>1){
if(n%d==0) {
n/=d;
cout << d << ' ';
}else{
d++;
}
}
}
} | # 0286, 2024-09-28 12:39:26, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int n ,d = 2;
cin >> n;
if(n<2)cout << "No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d>n){
cout << n;
break;
}else if(n%d==0) {
n/=d;
cout << d << ' ';
}else{
d++;
}
}
}
} | # 0287, 2024-09-28 12:40:58, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int n ,d = 2;
cin >> n;
if(n<2)cout << "No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d>n){
cout << n;
break;
}else if(n%d==0) {
n/=d;
cout << d << ' ';
}else{
d++;
}
}
}
} | # 0288, 2024-09-28 14:25:55, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n ,d = 2;
cin >> n;
if(n<2)cout << "No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d>n){
cout << n;
break;
}else if(n%d==0) {
n/=d;
cout << d << ' ';
}else{
d++;
}
}
}
} |
# 0289, 2024-09-28 09:08:44, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
#include<string>
#include<cmath>
#include<iomanip>
int main(){
long long N=0;
int d=2;
std::cin>>N;
if(N<2)std::cout<<"No prime factors for numbers lees than 2.";
else
{
while(N>1){
if(d*d>N)
{
std::cout<<N<<" ";
break;
}
else if(N%d==0){
N/=d;
std::cout<<d<<" ";
}
else d+=1;
}
}
} | # 0290, 2024-09-28 09:08:52, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
#include<string>
#include<cmath>
#include<iomanip>
int main(){
long long N=0;
int d=2;
std::cin>>N;
if(N<2)std::cout<<"No prime factors for numbers lees than 2.";
else
{
while(N>1){
if(d*d>N)
{
std::cout<<N<<" ";
break;
}
else if(N%d==0){
N/=d;
std::cout<<d<<" ";
}
else d+=1;
}
}
} | # 0291, 2024-09-28 09:09:24, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
#include<string>
#include<cmath>
#include<iomanip>
int main(){
long long N=0;
long long d=2;
std::cin>>N;
if(N<2)std::cout<<"No prime factors for numbers lees than 2.";
else
{
while(N>1){
if(d*d>N)
{
std::cout<<N<<" ";
break;
}
else if(N%d==0){
N/=d;
std::cout<<d<<" ";
}
else d+=1;
}
}
} | # 0292, 2024-09-28 09:13:25, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
#include<string>
#include<cmath>
#include<iomanip>
int main(){
long long N=0;
long long d=2;
std::cin>>N;
if(N<2)std::cout<<"No prime factors for numbers less than 2.";
else
{
while(N>1){
if(d*d>N)
{
std::cout<<N<<" ";
break;
}
else if(N%d==0){
N/=d;
std::cout<<d<<" ";
}
else d+=1;
}
}
} |
# 0293, 2024-09-28 09:08:20, -PPPPPPPPPPTPPPP-- (77%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factprs for numbers less than 2.";
}
else{
while(true){
if(n>1){
if(d*d>n){
cout << n << ' ';
break;}
else{
while(n%d==0){
n /= d;
cout << d << ' ';
}
d +=1;
//break;
}
}else{break;}
}
}
} | # 0294, 2024-09-28 09:10:35, -PPPPPPPPPPPPPPP-- (83%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
long long d=2;
if(n<2){
cout << "No prime factprs for numbers less than 2.";
}
else{
while(true){
if(n>1){
if(d*d>n){
cout << n << ' ';
break;}
else{
while(n%d==0){
n /= d;
cout << d << ' ';
}
d +=1;
//break;
}
}else{break;}
}
}
} | # 0295, 2024-09-28 09:13:23, -PPPPPPPPPPPPPPP-- (83%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
long long d=2;
if(n<2){
cout << "No prime factprs for numbers less than 2.";
}
else{
while(true){
if(n>1){
if(d*d>n){
cout << n << ' ';
break;}
else{
while(n%d==0){
n /= d;
cout << d << ' ';
}
d +=1;
continue;
}
}else{break;}
}
}
} | # 0296, 2024-09-28 09:15:42, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
long long d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(true){
if(n>1){
if(d*d>n){
cout << n << ' ';
break;}
else{
while(n%d==0){
n /= d;
cout << d << ' ';
}
d +=1;
continue;
}
}else{break;}
}
}
} |
# 0297, 2024-09-28 12:31:49, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
#include<cmath>
#include<iomanip>
#include<algorithm>
#include<cctype>
#include<string>
using namespace std;
int main(){
long long int N; cin >> N;
int d =2;
if(N<2) cout << "No prime factors for numbers less than 2.";
else{
while(N>1){if(N<=1){
}
else{
if(d*d>N){
cout << N << " ";
break;
}
else{
if(N%d==0){
while(N%d==0)
{N/=d;
cout << d << " ";}
d+= 1;
}
else d+= 1;
}
}}
}
} | # 0298, 2024-09-28 13:37:28, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
long long int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2." << endl;
}
else{
while(n > 1){
if(d * d > n){
cout << n << endl;
break;
}
else{
if(n % d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
}
} | # 0299, 2024-09-28 13:39:22, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
long long int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2." << endl;
}
else{
while(n > 1){
if(d * d > n){
cout << n << endl;
break;
}
else{
if(n % d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
}
} | # 0300, 2024-09-28 13:43:03, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
long long int n;
cin >> n;
long long int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2." << endl;
}
else{
while(n > 1){
if(d * d > n){
cout << n << endl;
break;
}
else{
if(n % d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
}
} |
# 0301, 2024-09-28 09:24:16, ------------------ (0%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main(){
long long N;
cin >> N ;
long long d = 2;
cout << d;
if(N<2 )cout<<"No prime factors for numbers less than 2.";
else{
for(;N>1;){
if(d*d >N ){cout << d << ' '; break;}
else{
for(;N%d==0;){N/=d; cout << d << ' ' ;}
d+=1;
}
}
}
} | # 0302, 2024-09-28 09:24:33, PPP--P-P-P--P---PP (50%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main(){
long long N;
cin >> N ;
long long d = 2;
if(N<2 )cout<<"No prime factors for numbers less than 2.";
else{
for(;N>1;){
if(d*d >N ){cout << d << ' '; break;}
else{
for(;N%d==0;){N/=d; cout << d << ' ' ;}
d+=1;
}
}
}
} | # 0303, 2024-09-28 09:33:48, PPP--P-P-P--P---PP (50%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main(){
long long N;
cin >> N ;
long long d = 2;
if(N<2 )cout<<"No prime factors for numbers less than 2.";
else{
for(;N>1;){
if(d*d >N ){cout << d << ' '; break;}
else{
for(;N%d==0;){N/=d; cout << d << ' ' ;}
d+=1;
}
}
}
} | # 0304, 2024-09-28 11:15:37, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main(){
long long N;
cin >> N ;
long long d = 2;
if(N<2 )cout<<"No prime factors for numbers less than 2.";
else{
while(N>1){
if(d*d >N ){cout << N << ' '; break;}
else{
while((N%d)==0){N/=d; cout << d << ' ' ;}
d+=1;
}
}
}
} |
# 0305, 2024-09-28 09:09:48, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (N > 1) {
if (d * d > N) {
cout << N << endl;
break;
}
while (N % d == 0) {
N /= d;
cout << d << ' ';
}
d++;
}
} | # 0306, 2024-09-28 09:33:38, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (N > 1) {
if (d * d > N) {
cout << N << endl;
break;
}
while (N % d == 0) {
N /= d;
cout << d << ' ';
}
d++;
}
} | # 0307, 2024-09-28 09:43:10, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (N > 1) {
if (d * d > N) {
cout << N << endl;
break;
}
while (N % d == 0) {
N /= d;
cout << d << ' ';
}
d++;
}
} | # 0308, 2024-09-28 10:00:31, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
long long N;
cin >> N;
long long d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (N > 1) {
if (d * d > N) {
cout << N << endl;
break;
}
while (N % d == 0) {
N /= d;
cout << d << ' ';
}
d += 1;
}
} |
# 0309, 2024-09-28 09:31:42, --P-PP-PPPP-PPPP-- (61%)
#include<iostream>
using namespace std;
int main(){
long long n;cin>>n;
long long d = 2;
int i=0;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}else{
while(n>1){
if(d*d > n){
cout<<" "<<n;
break;
}else{
if( n % d == 0){
n/=d;
if(i==0){cout<<d;}
else{cout<<" "<<d;}
i=1;
}else{
d++;
}
}
}
}
return 0;
} | # 0310, 2024-09-28 09:32:20, P-P-PP-PPPP-PPPPPP (77%)
#include<iostream>
using namespace std;
int main(){
long long n;cin>>n;
long long d = 2;
int i=0;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d > n){
cout<<" "<<n;
break;
}else{
if( n % d == 0){
n/=d;
if(i==0){cout<<d;}
else{cout<<" "<<d;}
i=1;
}else{
d++;
}
}
}
}
return 0;
} | # 0311, 2024-09-28 09:32:44, PP-P--P----P----PP (38%)
#include<iostream>
using namespace std;
int main(){
long long n;cin>>n;
long long d = 2;
int i=0;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d > n){
cout<<n;
break;
}else{
if( n % d == 0){
n/=d;
if(i==0){cout<<d;}
else{cout<<" "<<d;}
i=1;
}else{
d++;
}
}
}
}
return 0;
} | # 0312, 2024-09-28 09:34:26, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long n;cin>>n;
long long d = 2;
int i=0;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d > n){
if(i==0){cout<<n;}
else{cout<<" "<<n;}
break;
}else{
if( n % d == 0){
n/=d;
if(i==0){cout<<d;}
else{cout<<" "<<d;}
i=1;
}else{
d++;
}
}
}
}
return 0;
} |
# 0313, 2024-09-28 13:00:51, PTPTTPTPTPxTP-xxPP (44%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
}
else{
while(n%d==0){
n=n/d;
cout<<d<<" ";
continue;
}
}
d+=1;
continue;
}
}
} | # 0314, 2024-09-28 13:04:53, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n=n/d;
cout<<d<<" ";
continue;
}
d+=1;
continue;
}
}
} | # 0315, 2024-09-28 15:12:05, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n;
long long int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n=n/d;
cout<<d<<" ";
continue;
}
d+=1;
continue;
}
}
} |
# 0316, 2024-09-28 09:21:16, PTPTTPTPTPxxPxxxPP (44%)
#include <iostream>
using namespace std;
int main() {
long long n,d;
cin>>n;
d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
} else {
while(n>1){
if(d*d>n){
cout<<n<<" ";
}else {
while(n%d==0){
n /= d;
cout<<d<<" ";
}
d+=1;
}
}
}
} | # 0317, 2024-09-28 09:52:31, PTPTTPTPTPxxPxxxPP (44%)
#include <iostream>
using namespace std;
int main() {
int long long n,d;
cin>>n;
d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
} else {
while(n>1){
if(d*d>n){
cout<<n<<" ";
}else {
while(n%d==0){
n /= d;
cout<<d<<" ";
}
d+=1;
}
}
}
} | # 0318, 2024-09-28 09:56:12, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
int long long n,d;
cin>>n;
d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
} else {
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}else {
while(n%d==0){
n /= d;
cout<<d<<" ";
}
d+=1;
}
}
}
} |
# 0319, 2024-09-28 09:20:20, P-P--P-P-P--P---PP (44%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long int n,i=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}else{
while (n>1&&i*i<=n)
{
while(n%i==0){
cout << i<<" ";
n/=i;
}
i++;
}
}
} | # 0320, 2024-09-28 09:24:19, P-P--P-P-PxxP---PP (44%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long int n,d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
cout << n;
}
while(n%d==0){
n/=d;
cout << d << " ";
}
d++;
}
}
} | # 0321, 2024-09-28 09:25:05, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long int n,d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
cout << n;
return 0;
}
while(n%d==0){
n/=d;
cout << d << " ";
}
d++;
}
}
} |
# 0322, 2024-09-28 09:20:13, PPPPPPPPPPPPPPPP-- (88%)
#include <bits/stdc++.h>
using namespace std;
int main(){
unsigned long long int n;
cin>>n;
unsigned long long int d=2;
if (n<2)
{
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else
{
p:
if (n>1)
{
if (d*d>n)
{
cout<<n<<" ";
return 0;
}
else
{
g:
if (n%d==0)
{
n/=d;
cout<<d<<" ";
goto g;
}
else
{
d+=1;
goto p;
}
}
}
}
return 0;
} | # 0323, 2024-09-28 09:22:15, PPPPPPPPPPPPPPPP-- (88%)
#include <bits/stdc++.h>
using namespace std;
int main(){
unsigned long long int n;
cin>>n;
unsigned long long int d=2;
if (n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
p:
if (n>1)
{
if (d*d>n)
{
cout<<n<<" ";
}
else
{
g:
if (n%d==0)
{
n/=d;
cout<<d<<" ";
goto g;
}
else
{
d+=1;
goto p;
}
}
}
}
return 0;
} | # 0324, 2024-09-28 09:22:57, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin>>n;
long long int d=2;
if (n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
p:
if (n>1)
{
if (d*d>n)
{
cout<<n<<" ";
}
else
{
g:
if (n%d==0)
{
n/=d;
cout<<d<<" ";
goto g;
}
else
{
d+=1;
goto p;
}
}
}
}
return 0;
} |
# 0325, 2024-09-28 12:32:29, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int N;
int d=2;
cin>>N;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(N>1){
if(d*d>N){
cout<<N<<' ';
break;
}else{
while(N%d==0){
N/=d;
cout<<d<<' ';
}
d+=1;
}
}
}
} | # 0326, 2024-09-28 15:15:23, Compilation error (0%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long longN;
long long d=2;
cin>>N;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(N>1){
if(d*d>N){
cout<<N<<' ';
break;
}else{
while(N%d==0){
N/=d;
cout<<d<<' ';
}
d+=1;
}
}
}
} | # 0327, 2024-09-28 15:15:42, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long N;
long long d=2;
cin>>N;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while(N>1){
if(d*d>N){
cout<<N<<' ';
break;
}else{
while(N%d==0){
N/=d;
cout<<d<<' ';
}
d+=1;
}
}
}
} |
# 0328, 2024-09-28 09:10:28, PPPPPPP-P-TTTTTTPP (55%)
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>> n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d > n){
cout<< n<< " ";
break;
}
else if(n%d==0){
n/=d;
cout<< d<< " ";
}
d+=1;
}
return 0;
} | # 0329, 2024-09-28 09:12:25, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>> n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d > n){
cout<< n<< " ";
break;
}
while(n%d==0){
n/=d;
cout<< d<< " ";
}
d+=1;
}
return 0;
} | # 0330, 2024-09-28 09:14:46, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>> n;
long long d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d > n){
cout<< n<< " ";
break;
}
while(n%d==0){
n/=d;
cout<< d<< " ";
}
d+=1;
}
return 0;
} |
# 0331, 2024-09-28 13:09:36, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main(){
int n =0;
cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for number less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout << n <<" ";
return 0;
}
while(n % d ==0){
n /= d;
cout << d << " ";
}
d += 1;
}
if(n<=1) return 0;
} | # 0332, 2024-09-28 13:11:00, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main(){
long long n =0;
cin >> n;
long long d = 2;
if(n<2){
cout << "No prime factors for number less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout << n <<" ";
return 0;
}
while(n % d ==0){
n /= d;
cout << d << " ";
}
d += 1;
}
if(n<=1) return 0;
} | # 0333, 2024-09-28 13:19:35, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long n =0;
cin >> n;
long long d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout << n <<" ";
return 0;
}
while(n % d ==0){
n /= d;
cout << d << " ";
}
d += 1;
}
if(n<=1) return 0;
} |
# 0334, 2024-09-28 12:30:22, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d = 2;
if (N >= 2)
{
while (N > 1)
{
if (d*d > N)
{
cout << N;
break;
} else
{
if (N%d == 0)
{
N/=d;
cout << d << " ";
} else
{
d+=1;
}
}
}
} else
{
cout << "No prime factors for numbers less than 2";
}
} | # 0335, 2024-09-28 13:18:45, Compilation error (0%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d = 2;
if (N >= 2)
{
while (N > 1)
{
if (d*d > N)
{
cout << N;
break;
} else
{
if (N%d == 0)
{
N/=d;
cout << d << " ";
} else
{
d+=1;
}
}
}
} else
{
cout << "No prime factors for numbers less than 2.";
}
}#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d = 2;
if (N >= 2)
{
while (N > 1)
{
if (d*d > N)
{
cout << N;
break;
} else
{
if (N%d == 0)
{
N/=d;
cout << d << " ";
} else
{
d+=1;
}
}
}
} else
{
cout << "No prime factors for numbers less than 2.";
}
} | # 0336, 2024-09-28 13:19:06, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d = 2;
if (N >= 2)
{
while (N > 1)
{
if (d*d > N)
{
cout << N;
break;
} else
{
if (N%d == 0)
{
N/=d;
cout << d << " ";
} else
{
d+=1;
}
}
}
} else
{
cout << "No prime factors for numbers less than 2.";
}
} |
# 0337, 2024-09-28 12:33:04, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while (true)
{
do
{
if (n % d != 0)
{
d++;
}
if (n > 1)
{
if (d * d > n)
{
cout << n;
exit(0);
}
}
else
{
exit(0);
}
} while (n % d != 0);
n /= d;
cout << d << " ";
}
}
} | # 0338, 2024-09-28 12:41:03, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
do
{
if (n % d != 0)
{
d++;
}
if (n > 1)
{
if (d * d > n)
{
cout << n;
exit(0);
}
}
else
{
exit(0);
}
} while (n % d != 0);
n /= d;
cout << d << " ";
}
}
} | # 0339, 2024-09-28 12:44:49, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
do
{
if (n % d != 0)
{
d++;
}
if (n > 1)
{
if (d * d > n)
{
cout << n << endl;
exit(0);
}
}
else
{
cout << endl;
exit(0);
}
} while (n % d != 0);
n /= d;
cout << d << " ";
}
}
} |
# 0340, 2024-09-28 09:42:19, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}else {
while (N > 1)
{
if (d*d > N) {
cout << N;
return 0;
}
else {
while (N % d == 0)
{
N /= d;
cout << d << ' ';
}
d += 1;
}
}
}
} | # 0341, 2024-09-28 09:42:35, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}else {
while (N > 1)
{
if (d*d > N) {
cout << N;
return 0;
}
else {
while (N % d == 0)
{
N /= d;
cout << d << ' ';
}
d += 1;
}
}
}
} | # 0342, 2024-09-28 10:33:03, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
long long N;
cin >> N;
long long d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}else {
while (N > 1)
{
if (d*d > N) {
cout << N;
return 0;
}
else {
while (N % d == 0)
{
N /= d;
cout << d << ' ';
}
d += 1;
}
}
return 0;
}
} |
# 0343, 2024-09-28 12:28:48, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2";
return 0;
}
else {
while (n > 1){
if (d *d > n){
cout << n;
return 0;
}
else {
while (n % d == 0){
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
} | # 0344, 2024-09-28 12:29:10, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin >> n;
long long int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2";
return 0;
}
else {
while (n > 1){
if (d *d > n){
cout << n;
return 0;
}
else {
while (n % d == 0){
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
} | # 0345, 2024-09-28 12:29:32, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long int n;
cin >> n;
long long int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else {
while (n > 1){
if (d *d > n){
cout << n;
return 0;
}
else {
while (n % d == 0){
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
} |
# 0346, 2024-09-28 09:13:55, ------------------ (0%)
#include <bits/stdc++.h>
int main(){
long long n ;
std::cin >> n;
long long d =2;
std::string factor = "";
if(n<2){
std::cout << "No prime factor for number less than 2";
}else{
while(n>1){
if(d*d>n){
break;
}else{
if(n%d==0){
n/=d;
factor+=std::to_string(d)+" ";
}else{
d++;
}
}
}
factor.pop_back();
std::cout << factor;
}
} | # 0347, 2024-09-28 09:20:38, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
int main(){
long long n ;
std::cin >> n;
long long d =2;
std::string factor = "";
if(n<2){
std::cout << "No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
factor+=std::to_string(n)+" ";
break;
}else{
if(n%d==0){
n/=d;
factor+=std::to_string(d)+" ";
}else{
d++;
}
}
}
factor.pop_back();
std::cout << factor;
}
} | # 0348, 2024-09-28 09:33:21, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
int main(){
long long n ;
std::cin >> n;
long long d =2;
std::string factor = "";
if(n<2){
std::cout << "No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
factor+=std::to_string(n)+" ";
break;
}else{
if(n%d==0){
n/=d;
factor+=std::to_string(d)+" ";
}else{
d++;
}
}
}
factor.pop_back();
std::cout << factor;
}
} |
# 0349, 2024-09-28 09:19:36, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main() {
long long int number; cin >> number;
long long int d = 2;
if(number < 2) cout << "No prime fractors for numbers less than than 2.";
else {
while(number >= 1) {
if(d*d > number) {
cout << number << ' ';
break;
}
else {
if(number % d == 0) {
cout << d << ' ';
number /= d;
} else d += 1;
}
}
}
} | # 0350, 2024-09-28 09:20:49, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main() {
long long int number; cin >> number;
long long int d = 2;
if(number < 2) cout << "No prime factors for numbers less than than 2.";
else {
while(number >= 1) {
if(d*d > number) {
cout << number << ' ';
break;
}
else {
if(number % d == 0) {
cout << d << ' ';
number /= d;
} else d += 1;
}
}
}
} | # 0351, 2024-09-28 09:57:01, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main() {
long long int number; cin >> number;
long long int d = 2;
if(number < 2) cout << "No prime factors for numbers less than 2.";
else {
while(number >= 1) {
if(d*d > number) {
cout << number << ' ';
break;
}
else {
if(number % d == 0) {
cout << d << ' ';
number /= d;
} else d += 1;
}
}
}
} |
# 0352, 2024-09-28 12:28:34, PPP--P-P-P--P---PP (50%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
long long d=2;
if(n<2)cout<<"No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d>n){
cout<<d<<" ";return 0;
}else if(!(n%d)){
n/=d;
cout<<d<<" ";
}else d++;
}
cout<<d<<" ";
}
} | # 0353, 2024-09-28 12:29:05, PPP--P-P-P-------- (33%)
#include <bits/stdc++.h>
using namespace std;
int main(){
unsigned int n;
cin>>n;
unsigned int d=2;
if(n<2)cout<<"No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d>n){
cout<<d<<" ";return 0;
}else if(!(n%d)){
n/=d;
cout<<d<<" ";
}else d++;
}
cout<<d<<" ";
}
} | # 0354, 2024-09-28 12:32:07, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
long long d=2;
if(n<2)cout<<"No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";return 0;
}else{
if(!(n%d)){
n/=d;
cout<<d<<" ";
}else d++;
}
}
cout<<d<<" ";
}
} |
# 0355, 2024-09-28 12:33:51, P-PxxPxPxPxxPxxxPP (44%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n>=2){
if(n>1){
if(d*d<=n){
while(n>1){
if(d*d<=n){
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
else cout<<"ah";
}
}
else {
cout<<3;
return 0;
}
}
else return 0;
}
else cout<<"No prime factors for numbers less than 2.";
} | # 0356, 2024-09-28 12:46:27, P-PPPPPPPPPPPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n>=2){
if(n>1){
if(d*d<=n){
while(n>1){
if(d*d<=n){
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
else {
cout<<n;
return 0;
}
}
return 0;
}
else {
cout<<3;
return 0;
}
}
else return 0;
}
else cout<<"No prime factors for numbers less than 2.";
} | # 0357, 2024-09-28 12:47:24, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
long long d=2;
cin>>n;
if(n>=2){
if(n>1){
if(d*d<=n){
while(n>1){
if(d*d<=n){
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
else {
cout<<n;
return 0;
}
}
return 0;
}
else {
cout<<n;
return 0;
}
}
else return 0;
}
else cout<<"No prime factors for numbers less than 2.";
} |
# 0358, 2024-09-28 12:28:02, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if (n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}
else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
return 0;
} | # 0359, 2024-09-28 12:28:30, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if (n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}
else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
return 0;
} | # 0360, 2024-09-28 12:33:46, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
long long d=2;
if (n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}
else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}else {
d+=1;
}
}
}
}
return 0;
} |
# 0361, 2024-09-28 12:34:05, PTPTTPTPTPxTPxxxPP (44%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin >> n ;
int d = 2 ;
if( n < 2 ){
cout << "No prime factors for numbers less than 2.";
}else{
while( n > 1){
if( d*d > n ){
cout << n << " ";
}else{
while( n%d == 0 ){
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 0362, 2024-09-28 12:36:40, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin >> n ;
int d = 2 ;
if( n < 2 ){
cout << "No prime factors for numbers less than 2.";
}else{
while( n > 1){
if( d*d > n ){
cout << n << " ";
break;
}else{
while( n%d == 0 ){
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 0363, 2024-09-28 15:16:38, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin >> n ;
long long int d = 2 ;
if( n < 2 ){
cout << "No prime factors for numbers less than 2.";
}else{
while( n > 1){
if( d*d > n ){
cout << n << " ";
break;
}else{
while( n%d == 0 ){
n /= d;
cout << d << ' ' ;
}
d += 1;
}
}
}
} |
# 0364, 2024-09-28 09:08:55, PTPTTPTPTPTTTTTTPP (38%)
#include <iostream>
using namespace std;
int main(){
int n, d = 2;
cin >> n;
if(n < 2)
cout << "No prime factors for numbers less than 2." << endl;
else
while (n > 1){
if (d * d > n){
cout << n << " ";
} else {
while (n % d == 0){
n /= d;
cout << d << " ";
}
d+=1;
}
}
} | # 0365, 2024-09-28 09:12:04, PTTTTTTTTTTTTTTTPP (16%)
#include <iostream>
using namespace std;
int main()
{
int n, d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2." << endl;
}
else
{
while (n > 1)
{
if (d * d > n)
{
cout << n << " ";
}
else
{
if (n % d == 0)
{
n /= d;
cout << d << " ";
}
else
{
d += 1;
}
}
}
}
} | # 0366, 2024-09-28 09:27:10, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main()
{
long n, d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2." << endl;
}
else
{
while (true)
{
if (n > 1)
{
if (d * d > n)
{
cout << n << " ";
break;
}
else
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d += 1;
}
}
else
{
break;
}
}
}
} |
# 0367, 2024-09-28 12:33:50, -PPPPPPPPPPTPPPP-- (77%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int N;
cin >> N;
int d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2";
return 0;
}
else{
while(N>1){
if(d*d>N){
cout << N;
return 0;
}
else{
while(N%d==0){
N/=d;
cout << d << ' ';
}
d+=1;
}
}
}
} | # 0368, 2024-09-28 12:35:49, -PPPPPPPPPPPPPPP-- (83%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int N;
cin >> N;
long long int d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2";
return 0;
}
else{
while(N>1){
if(d*d>N){
cout << N;
return 0;
}
else{
while(N%d==0){
N/=d;
cout << d << ' ';
}
d+=1;
}
}
}
} | # 0369, 2024-09-28 12:40:42, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int N;
cin >> N;
long long int d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(N>1){
if(d*d>N){
cout << N;
return 0;
}
else{
while(N%d==0){
N/=d;
cout << d << ' ';
}
d+=1;
}
}
}
} |
# 0370, 2024-09-28 09:09:17, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n, d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if (d * d > n)
{
cout << n << " ";
break;
}
else
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 0371, 2024-09-28 09:09:52, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n, d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if (d * d > n)
{
cout << n << " ";
break;
}
else
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 0372, 2024-09-28 09:12:36, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n, d = 2;
cin >> n;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if (d * d > n)
{
cout << n << " ";
break;
}
else
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} |
# 0373, 2024-09-28 12:43:23, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main(){
long long N;cin>>N;
long long d = 2;
while(N<2){
cout<<"NO prime factors for numbers less than 2.";
return 0;
}
string sum = "";
while(N>=2){
while(N>1){
if((d*d)>N){
sum += to_string(N);
cout<<sum;
return 0;
}else{
if(N%d == 0){
N /=d;
sum += to_string(d) + " ";
}else{
d++;
}
}
}
while(N<=1){
return 0;
}
}
return 0;
} | # 0374, 2024-09-28 12:47:50, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
long long N;cin>>N;
long long d = 2;
while(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
string sum = "";
while(N>=2){
while(N>1){
if((d*d)>N){
sum += to_string(N);
cout<<sum;
return 0;
}else{
if(N%d == 0){
N /=d;
sum += to_string(d) + " ";
}else{
d++;
}
}
}
while(N<=1){
return 0;
}
}
return 0;
}#include<iostream>
using namespace std;
int main(){
long long N;cin>>N;
long long d = 2;
while(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
string sum = "";
while(N>=2){
while(N>1){
if((d*d)>N){
sum += to_string(N);
cout<<sum;
return 0;
}else{
if(N%d == 0){
N /=d;
sum += to_string(d) + " ";
}else{
d++;
}
}
}
while(N<=1){
return 0;
}
}
return 0;
}#include<iostream>
using namespace std;
int main(){
long long N;cin>>N;
long long d = 2;
while(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
string sum = "";
while(N>=2){
while(N>1){
if((d*d)>N){
sum += to_string(N);
cout<<sum;
return 0;
}else{
if(N%d == 0){
N /=d;
sum += to_string(d) + " ";
}else{
d++;
}
}
}
while(N<=1){
return 0;
}
}
return 0;
}#include<iostream>
using namespace std;
int main(){
long long N;cin>>N;
long long d = 2;
while(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
string sum = "";
while(N>=2){
while(N>1){
if((d*d)>N){
sum += to_string(N);
cout<<sum;
return 0;
}else{
if(N%d == 0){
N /=d;
sum += to_string(d) + " ";
}else{
d++;
}
}
}
while(N<=1){
return 0;
}
}
return 0;
} | # 0375, 2024-09-28 12:47:58, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long N;cin>>N;
long long d = 2;
while(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
string sum = "";
while(N>=2){
while(N>1){
if((d*d)>N){
sum += to_string(N);
cout<<sum;
return 0;
}else{
if(N%d == 0){
N /=d;
sum += to_string(d) + " ";
}else{
d++;
}
}
}
while(N<=1){
return 0;
}
}
return 0;
} |
# 0376, 2024-09-28 09:12:17, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
// void nDiv_d(long long n, int d){
// n /= d;
// cout << d << ' ';
// }
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2." << endl;
}else while(n > 1){
if(d*d > n){
cout << n << ' ';
break;
}else while(n%d == 0){
n /= d;
cout << d << ' ';
}
d++;
}
} | # 0377, 2024-09-28 09:12:37, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
// void nDiv_d(long long n, int d){
// n /= d;
// cout << d << ' ';
// }
int main(){
long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2." << endl;
}else while(n > 1){
if(d*d > n){
cout << n << ' ';
break;
}else while(n%d == 0){
n /= d;
cout << d << ' ';
}
d++;
}
} | # 0378, 2024-09-28 09:15:13, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2." << endl;
}else while(n > 1){
if(d*d > n){
cout << n << ' ';
break;
}else while(n%d == 0){
n /= d;
cout << d << ' ';
}
d++;
}
} |
# 0379, 2024-09-28 12:36:28, -PP--P-P-P--P----- (33%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin>>n;
unsigned long long int d=2;
if(n<2){cout<<"No prime factors for numbers less than 2";
return 0;}
while(n>=2){
while(n>1){
if(d*d>n){
cout<<d<<" ";
return 0;
}
else{
while(n%d==0){
n=n/d;
cout<<d<<" ";
}
d+=1;
}
}
return 0;
}
} | # 0380, 2024-09-28 13:18:35, PPP--P-P-P--P---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin>>n;
unsigned long long int d=2;
if(n<2){cout<<"No prime factors for numbers less than 2.";
return 0;}
while(n>=2){
while(n>1){
if(d*d>n){
cout<<d<<" ";
return 0;
}
else{
while(n%d==0){
n=n/d;
cout<<d<<" ";
}
d+=1;
}
}
return 0;
}
} | # 0381, 2024-09-28 14:16:34, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin>>n;
unsigned long long int d=2;
if(n<2){cout<<"No prime factors for numbers less than 2.";
return 0;}
while(n>=2){
while(n>1){
if((d*d)>n){
cout<<n<<" ";
return 0;
}
else{
while(n%d==0){
n=n/d;
cout<<d<<" ";
}
d+=1;
}
}
return 0;
}
} |
# 0382, 2024-09-28 09:11:10, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(n > 1){
if(d * d > n){
cout << n << ' ';
return 0;
}
else{
if(n % d == 0){
n /= d;
cout << d << ' ';
}
else d++;
}
}
}
} | # 0383, 2024-09-28 09:12:54, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(n > 1){
if(d * d > n){
cout << n << ' ';
return 0;
}
else{
if(n % d == 0){
n /= d;
cout << d << ' ';
}
else d++;
}
}
}
} |
# 0384, 2024-09-28 13:15:28, PPPPPPPPPPPPPPPP-- (88%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
unsigned long long n;
cin >> n;
unsigned long long d = 2;
if (n<2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
while(true)
{
if (n>1)
{
if (d*d>n)
{
cout << n;
return 0;
}
else
{
while(true)
{
if (n%d==0)
{
n/=d;
cout << d << " ";
}
else
{
d+=1;
break;
}
}
}
}
else
{
break;
}
}
}
} | # 0385, 2024-09-28 13:18:28, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int64_t n;
cin >> n;
int64_t d = 2;
if (n<2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
while(true)
{
if (n>1)
{
if (d*d>n)
{
cout << n;
return 0;
}
else
{
while(true)
{
if (n%d==0)
{
n/=d;
cout << d << " ";
}
else
{
d+=1;
break;
}
}
}
}
else
{
break;
}
}
}
} |
# 0386, 2024-09-28 12:43:48, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std ;
int main() {
long long int N ;
cin >> N ;
long long int d = 2 ;
if (N < 2) {
cout << "No prime factors for number less than 2." ;
}
else {
// start find prime
while (N > 1) {
if (d*d > N) { cout << N << " " ; break ;}
else {
while (N%d == 0) {
N /= d ;
cout << d << " " ;
}
d += 1 ;
}
}
}
} | # 0387, 2024-09-28 12:44:32, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
#include <cmath>
#include <cstring>
#include <algorithm>
using namespace std ;
int main() {
long long int N ;
cin >> N ;
long long int d = 2 ;
if (N < 2) {
cout << "No prime factors for numbers less than 2." ;
}
else {
// start find prime
while (N > 1) {
if (d*d > N) { cout << N << " " ; break ;}
else {
while (N%d == 0) {
N /= d ;
cout << d << " " ;
}
d += 1 ;
}
}
}
} |
# 0388, 2024-09-28 10:11:19, PT-TTTTTTTTTTTTTPP (16%)
#include<iostream>
#include<string>
#include<cmath>
using namespace std;
int main(){
long long n,d=2;
//cout<<"hi"<<endl;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
}
else{
while (n>1){
if(d*d > n){
bool first=true;
for(long long i=2;i<ceil(sqrt(n));i++){
while(n!=1){
if(n%i==0 and first){
cout<<i;
n=n/i;
first=false;
}
if(n%i==0 and !(first)){
cout<<i<<' ';
n=n/d;
}
}
break;
}
}
else{
while (n%d==0){
n/=d;
bool firstt=true;
for(long long i=2;i<ceil(sqrt(n));i++){
while(d!=1){
if(d%i==0 and firstt){
cout<<i;
d=d/i;
firstt=false;
}
if(d%i==0 and !(firstt)){
cout<<i<<' ';
d=d/i;
}
}
break;
}
}
d+=1;
continue;
}
}
}
} | # 0389, 2024-09-28 11:57:36, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
#include<string>
#include<cmath>
using namespace std;
bool prime(long long n){
if(n==1) return false;
for(long long i=2;i<ceil(sqrt(n)); i++){
if(n%i==0){
return false;
}
}
return true;
}
int main(){
long long n,d=2;
//cout<<"hi"<<endl;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
}
else{
while (n>1){
if(d*d > n){
bool first=true;
if(prime(n)){
cout<<n<<' ';
break;
}
}
else{
while (n%d==0){
n/=d;
bool firstt=true;
if(prime(d)){
cout<<d<<' ';
}
}
d+=1;
continue;
}
}
}
} |
# 0390, 2024-09-28 12:35:25, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long num;
cin >> num;
int d = 2;
if (num < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (num > 1)
{
if (d * d > num)
{
cout << num << " ";
num /= num;
}
else
{
if (num % d == 0)
{
num /= d;
cout << d << " ";
}
else
{
d++;
}
}
}
}
} | # 0391, 2024-09-28 12:36:56, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long num;
cin >> num;
long long d = 2;
if (num < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (num > 1)
{
if (d * d > num)
{
cout << num << " ";
num /= num;
}
else
{
if (num % d == 0)
{
num /= d;
cout << d << " ";
}
else
{
d++;
}
}
}
}
} |
# 0392, 2024-09-28 09:15:38, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin>>n;
long long int d=2;
long long int size=pow(10,20);
long long int out[size];
long long int idx=0;
if (n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else{
while (n>1){
if (d*d>n){
cout<<n<<" ";
break;
}
else{
if (n%d==0){
while (n%d==0){
n/=d;
cout<<d<<" ";
}
}
else{
d+=1;
}
}
}
}
} | # 0393, 2024-09-28 09:33:51, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin>>n;
long long int d=2;
long long int size=pow(10,20);
long long int out[size];
long long int idx=0;
if (n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else{
while (n>1){
if (d*d>n){
cout<<n<<" ";
break;
}
else{
if (n%d==0){
while (n%d==0){
n/=d;
cout<<d<<" ";
}
}
else{
d+=1;
}
}
}
}
}
//ENG_EXAM_WEEK |
# 0394, 2024-09-28 12:37:54, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.\n";
}else{
int d = 2;
while(n > 1){
if(d*d > n){
cout << n << " ";
break;
}
while(n % d == 0){
n /= d;
cout << d << " ";
}
d++;
}
}
} | # 0395, 2024-09-28 15:16:40, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.\n";
}else{
while(n > 1){
if(d*d > n){
cout << n << " ";
break;
}
while(n && n % d == 0){
n /= d;
cout << d << " ";
}
d++;
}
}
} |
# 0396, 2024-09-28 12:30:41, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
long long n;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(1)
{
if(n > 1)
{
if(d*d > n)
{
cout << n;
break;
}
else
{
if(n % d == 0)
{
n = n / d;
cout << d << " ";
}
else
{
d++;
}
}
}
}
}
return 0;
} | # 0397, 2024-09-28 12:42:34, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
long long n;
cin >> n;
long long d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(1)
{
if(n > 1)
{
if(d*d > n)
{
cout << n;
break;
}
else
{
if(n % d == 0)
{
n = n / d;
cout << d << " ";
}
else
{
if(d == 2)
{
d++;
}
else if(d % 10 == 3 && d / 10 != 0)
{
d = d + 4;
}
else
{
d = d + 2;
}
//cout << d << " ";
}
}
}
}
}
return 0;
} |
# 0398, 2024-09-28 12:27:01, -PPPPPPPPPTTTTTT-- (50%)
#include "bits/stdc++.h"
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if( n<2 ){
cout << "No prime factors for number less than 2.";
return 0;
}
else {
while (n>1){
if( d*d > n){
cout << n << " ";
return 0;
}
else {
while( n%d == 0){
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} | # 0399, 2024-09-28 12:29:36, PPPPPPPPPPPPPPPPPP (100%)
#include "bits/stdc++.h"
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if( n<2 ){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else {
while (n>1){
if( d*d > n){
cout << n << " ";
return 0;
}
else {
while( n%d == 0){
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} |
# 0400, 2024-09-28 12:33:56, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n >1){
if(d*d > n){
cout << n << " ";
break;
}else{
while(n % d == 0){
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} | # 0401, 2024-09-28 12:46:46, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n >1){
if(d*d > n){
cout << n << " ";
break;
}else{
while(n % d == 0){
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} |
# 0402, 2024-09-28 14:30:48, PPPPPPPPPPPPPPPP-- (88%)
#include <iostream>
using namespace std;
int main()
{
unsigned long long int N,d = 2;
cin >> N;
if(N<2){cout << "No prime factors for numbers less than 2.";return 0;}
while(N != 1)
{
if(d*d > N){cout << N << ' ';N /= N;}
if(N%d == 0){N /= d;cout << d << ' ';}
else{d++;}
}
} | # 0403, 2024-09-28 14:31:29, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main()
{
long long int N,d = 2;
cin >> N;
if(N<2){cout << "No prime factors for numbers less than 2.";return 0;}
while(N != 1)
{
if(d*d > N){cout << N << ' ';N /= N;}
if(N%d == 0){N /= d;cout << d << ' ';}
else{d++;}
}
} |
# 0404, 2024-09-28 12:46:13, PPP--P-P-PxTP---PP (50%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
// cout << "hello" << endl;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}else{
if(n>1){
if(d*d>n){
//show factor
cout << n << " ";
}else{
while(n%d==0){
n/=d;
cout << d << " ";
}
while(n%d!=0){
d+=1;
//go to (N>1)
if(n>1){
if(d*d>n){
//show factor
cout << n << " ";
}else{
while(n%d==0){
n/=d;
cout << d << " ";
}
}
}else{
//stop
return 0;
}
}
}
}else{
//stop
return 0;
}
}
} | # 0405, 2024-09-28 12:52:10, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
// cout << "hello" << endl;
long long d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}else{
if(n>1){
if(d*d>n){
//show factor
cout << n << " ";
return 0;
}else{
while(n%d==0){
n/=d;
cout << d << " ";
}
while(n%d!=0){
d+=1;
//go to (N>1)
if(n>1){
if(d*d>n){
//show factor
cout << n << " ";
return 0;
}else{
while(n%d==0){
n/=d;
cout << d << " ";
}
}
}else{
//stop
return 0;
}
}
}
}else{
//stop
return 0;
}
}
} |
# 0406, 2024-09-28 09:18:29, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long N;
cin >>N;
int d=2;
if(N<2) cout<<"No prime factors for numbers less than 2.";
else
{
for(;N>1;)
{
if(d*d>N) {cout<<N;break;}
else
{
while(N%d==0)
{
N/=d;
cout<<d<<" ";
}
d++;
}
}
}
} | # 0407, 2024-09-28 09:22:38, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main()
{
long N;
cin >>N;
long d=2;
if(N<2) cout<<"No prime factors for numbers less than 2.";
else
{
for(;N>1;)
{
if(d*d>N) {cout<<N;break;}
else
{
while(N%d==0)
{
N/=d;
cout<<d<<" ";
}
d++;
}
}
}
} |
# 0408, 2024-09-28 09:18:13, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
long N;
cin >> N;
long d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while (N > 1){
if(d*d > N){
cout << N << ' ';
outed = true;
break;
}
else if (N % d == 0){
while (N % d == 0){
N/=d;
cout << d << ' ';
}
}
else {
d += 1;
}
}
}
} | # 0409, 2024-09-28 09:18:44, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long N;
cin >> N;
long d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while (N > 1){
if(d*d > N){
cout << N << ' ';
break;
}
else if (N % d == 0){
while (N % d == 0){
N/=d;
cout << d << ' ';
}
}
else {
d += 1;
}
}
}
} |
# 0410, 2024-09-28 09:12:17, PTPxTPxPTPxxPxxxPP (44%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define sz(x) (int)x.size()
#define arr_(x) (int)sizeof(x)/sizeof(x[0])
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
ll n; cin >> n;
ll d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2."<<endl ;
return 0;
}
else{
while(n>1){
if(d*d > n){
cout << n << " " ;
}
else{
while(n%d==0){
n/=d;
cout << d << " " ;
}
d+=1;
}
}
return 0;
}
} | # 0411, 2024-09-28 09:13:41, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define sz(x) (int)x.size()
#define arr_(x) (int)sizeof(x)/sizeof(x[0])
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
ll n; cin >> n;
ll d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2."<<endl ;
return 0;
}
else{
while(n>1){
if(d*d > n){
cout << n << " " ;
return 0;
}
else{
while(n%d==0){
n/=d;
cout << d << " " ;
}
d+=1;
}
}
return 0;
}
} |
# 0412, 2024-09-28 09:23:30, PTPTTPTPTPTTPTTTPP (44%)
#include <iostream>
using namespace std;
int main () {
long long N;
long long d=2;
cin >> N;
if (N<2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
while (true) {
if (N>1) {
if (d*d>N) {
cout << N << endl;
} else {
while (N>=1) {
if (N%d==0) {
N/=d;
cout << d << " ";
} else {
d+=1;
break;
}
}
}
} else break;
}
}
} | # 0413, 2024-09-28 09:51:50, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main () {
long long N;
long long d=2;
cin >> N;
if (N<2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
while (true) {
if (N>1) {
if (d*d>N) {
cout << N << endl;
break;
} else {
while (N>1) {
if (N%d==0) {
N/=d;
cout << d << " ";
} else {
d+=1;
break;
}
}
}
} else break;
}
}
} |
# 0414, 2024-09-28 10:30:56, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long n; cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
while (n > 1) {
if (d*d > n) {
cout << n << endl;
break;
}
else {
while (true) {
if (n%d == 0) {
n /= d;
cout << d << ' ';
}
else {
d += 1;
break;
}
}
}
}
}
} | # 0415, 2024-09-28 10:32:59, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long n; cin >> n;
long d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
while (n > 1) {
if (d*d > n) {
cout << n << endl;
break;
}
else {
while (true) {
if (n%d == 0) {
n /= d;
cout << d << ' ';
}
else {
d += 1;
break;
}
}
}
}
}
} |
# 0416, 2024-09-28 09:52:45, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
void pf(int n)
{
}
int main()
{
int n,d=2;
cin >>n;
if(n<2) cout << "No prime factors for numbers less than 2.";
else
{
if(n>1)
{
while (n>1)
{
if(d*d > n)
{
// pf(n);
cout << n <<" ";
return 0;
}
else
{
while (n%d ==0)
{
n /= d;
cout << d << " ";
}
d++;
}
}
}
else
{
return 0;
}
}
} | # 0417, 2024-09-28 09:53:43, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int n,d=2;
cin >>n;
if(n<2) cout << "No prime factors for numbers less than 2.";
else
{
if(n>1)
{
while (n>1)
{
if(d*d > n)
{
// pf(n);
cout << n <<" ";
return 0;
}
else
{
while (n%d ==0)
{
n /= d;
cout << d << " ";
}
d++;
}
}
}
else
{
return 0;
}
}
} |
# 0418, 2024-09-28 09:12:32, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main() {
long long N;
cin >> N;
long long d = 2;
if (N < 2) {
cout << "No prime factors for number less than 2.";
} else {
for (int i = 0; N > 1; i++) {
if (d*d > N) {
cout << N << " ";
break;
} else {
for (int j = 0; N % d == 0; j++) {
N /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 0419, 2024-09-28 09:13:08, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main() {
long long N;
cin >> N;
long long d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
} else {
for (int i = 0; N > 1; i++) {
if (d*d > N) {
cout << N << " ";
break;
} else {
for (int j = 0; N % d == 0; j++) {
N /= d;
cout << d << " ";
}
d += 1;
}
}
}
} |
# 0420, 2024-09-28 12:55:13, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main (){
long long int N;
cin >> N;
long long int d = 2;
if (N < 2){
cout << "No prime factor for numbers less than 2.";
} else {
while (N > 1){
if (d * d > N){
cout << N << " ";
break;
} else if (N % d == 0){
N /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
} | # 0421, 2024-09-28 12:57:38, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main (){
long long int N;
cin >> N;
long long int d = 2;
if (N < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (N > 1){
if (d * d > N){
cout << N << " ";
break;
} else if (N % d == 0){
N /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
} |
# 0422, 2024-09-28 12:31:50, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long N;
cin>>N;
int d=2;
if (N < 2){
cout<<"No prime factors for numbers less than 2.";
} else {
while (N>1){
if (d*d > N) {
cout<<N;
break;
}
while (N%d == 0) {
N/=d;
cout<<d<<" ";
}
d+=1;
}
}
} | # 0423, 2024-09-28 13:24:46, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
long long N;
cin>>N;
long long d=2;
if (N < 2){
cout<<"No prime factors for numbers less than 2.";
} else {
while (N>1){
if (d*d > N) {
cout<<N;
break;
}
while (N%d == 0) {
N/=d;
cout<<d<<" ";
}
d+=1;
}
}
} |
# 0424, 2024-09-28 12:36:54, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
}
else {
while (n > 1){
if (d * d > n){
cout << n << " " ;
break;
}
else {
while (n % d == 0){
n /= d;
cout << d << " ";
}
if (n % d != 0) {
d += 1;
}
}
}
}
} | # 0425, 2024-09-28 12:44:07, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2 ;
long long k = sqrt(n) + 1;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
}
else {
while (n > 1){
if (d * d > n){
cout << n << " " ;
break;
}
else {
while (n % d == 0){
n /= d;
cout << d << " ";
}
if (n % d != 0) {
d += 1;
if (d > k){
return 0;
}
}
}
}
}
} |
# 0426, 2024-09-28 12:32:56, -PPPPPPPPPPPPPPP-- (83%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n,d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2";
}
else{
while(n>1){
if(d*d>n){
cout << n;
break;
}
else{
while(n%d==0){
n=n/d;
cout << d << " ";
}
d++;
}
}
}
} | # 0427, 2024-09-28 12:33:48, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n,d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout << n;
break;
}
else{
while(n%d==0){
n=n/d;
cout << d << " ";
}
d++;
}
}
}
} |
# 0428, 2024-09-28 09:16:10, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main(){
long N;
cin >> N;
long d = 2;
if (N<2) {
cout << "No prime factors for numbers less than 2";
} else {
while (N>1) {
if (d*d>N) {
cout << N << " ";
break;
} else {
while (N%d==0) {
N /=d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} | # 0429, 2024-09-28 09:17:41, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long N;
cin >> N;
long d = 2;
if (N<2) {
cout << "No prime factors for numbers less than 2.";
return 0;
} else {
while (N>1) {
if (d*d>N) {
cout << N << " ";
break;
} else {
while (N%d==0) {
N /=d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} |
# 0430, 2024-09-28 12:31:05, PPP--P-P-P-TP---PP (50%)
#include<bits/stdc++.h>
using namespace std;
main()
{
long long n;
int d =2;
cin >>n;
if (n<2)
{
cout <<"No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if (d*d>n)
{
cout <<d<<" ";
break;
}
else
{
while(n%d==0)
{
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
} | # 0431, 2024-09-28 12:34:53, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n,d =2;
cin >>n;
if (n<2)
{
cout <<"No prime factors for numbers less than 2.";
}
else
{
while(n>1)
{
if (d*d>n)
{
cout <<n<<" ";
break;
}
else
{
while(n%d==0)
{
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
} |
# 0432, 2024-09-28 12:46:30, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long n;
cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}else{
while(n>1){
if((d*d)>n){
cout << n << ' ';
// long i = 2;
// while(n!=1||i!=n){
// // cout << "hello";
// if(n%i==0){
// cout << i << ' ';
// n = n/i;
// }else{
// i++;
// }
// }
return 0;
}else{
while(n%d == 0){
n/=d;
cout << d << ' ';
// int i = 2;
// while(d!=1){
// if(d%i==0){
// cout << i << ' ';
// d = d/i;
// }else{
// i++;
// }
// }
}
d+=1;
}
}
return 0;
}
} | # 0433, 2024-09-28 12:48:03, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}else{
while(n>1){
if((d*d)>n){
cout << n << ' ';
return 0;
}else{
while(n%d == 0){
n/=d;
cout << d << ' ';
}
d+=1;
}
}
return 0;
}
} |
# 0434, 2024-09-28 09:44:33, PxxxxxxxxxxxxxxxPP (16%)
#include <bits/stdc++.h>
using namespace std;
bool checkprime(int x)
{
bool d = true;
if (x < 2)
{
d = false;
return d;
}
for (int i = 2; i <= sqrt(x); i++)
{
if (x % i == 0)
{
d = false;
return d;
}
}
return d;
}
int main()
{
long long int n;
cin >> n;
long long int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (n > 1)
{
if (d * d > n)
{
for (long long int i = 0; i < n; i++)
{
if(n%i == 0) {
bool x = checkprime(i);
if(x) {
cout << i << " ";
} else {
continue;
}
}
}
}
else
{
if (n % d == 0)
{
n /= d;
bool x = checkprime(d);
if(x) {
cout << d << " ";
} else {
continue;
}
}
else
{
d += 1;
continue;
}
}
}
else
{
break;
}
}
}
} | # 0435, 2024-09-28 10:55:58, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
bool checkprime(long long int x) {
if (x < 2) {
return false;
}
for (long long int i = 2; i <= x; i++)
{
if(x % i == 0) {
return false;
}
}
return true;
}
int main() {
long long int n;
cin >> n;
long long int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2.";
} else {
while (true)
{
if (n > 1) {
if (d*d > n) {
cout << n << " ";
break;
}
else {
if(n%d == 0) {
n/=d;
cout << d << " ";
} else {
d += 1;
}
}
} else {
break;
}
}
}
} |
# 0436, 2024-09-28 13:38:58, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <string>
using namespace std;
int main(){
long long int n;
cin >> n;
int d = 2;
if (n >=2 ){
while (n >1) {
if(d*d <= n){
while(n%d == 0){
n /= d;
cout << d << " ";
}
} else {
cout << n << " ";
break;
}
d += 1;
}
} else {
cout << "No prime factors for numbers less than 2.";
}
} | # 0437, 2024-09-28 13:39:47, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
#include <string>
using namespace std;
int main(){
long long int n;
cin >> n;
long long int d = 2;
if (n >=2 ){
while (n >1) {
if(d*d <= n){
while(n%d == 0){
n /= d;
cout << d << " ";
}
} else {
cout << n << " ";
break;
}
d += 1;
}
} else {
cout << "No prime factors for numbers less than 2.";
}
} |
# 0438, 2024-09-28 09:17:13, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std ;
int main() {
long long N ;
cin >> N ;
int d = 2 ;
if(N < 2) {
cout << "No prime factors for numbers less than 2." ;
return 0 ;
}
else {
while(N > 1) {
if(d * d > N) {
cout << N << " " ;
return 0 ;
}
else {
if(N % d == 0) {
N /= d ;
cout << d << " " ;
}
else {
d += 1 ;
}
}
}
return 0 ;
}
} | # 0439, 2024-09-28 09:20:00, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std ;
int main() {
long long N ;
cin >> N ;
long long d = 2 ;
if(N < 2) {
cout << "No prime factors for numbers less than 2." ;
return 0 ;
}
else {
while(N > 1) {
if(d * d > N) {
cout << N << " " ;
return 0 ;
}
else {
if(N % d == 0) {
N /= d ;
cout << d << " " ;
}
else {
d += 1 ;
}
}
}
return 0 ;
}
} |
# 0440, 2024-09-28 09:39:49, -PPPPPPPPPPPPPPP-- (83%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n ; cin >> n;
long long d = 2 ;
if (n < 2) cout << "No prime factors for nujmbers less than 2.";
else {
while (n > 1){
if (d * d > n){
cout << n;
break;
}
else {
while (n % d == 0) {
n /= d ;
cout << d << ' ';
}
d++;
}
}
}
} | # 0441, 2024-09-28 09:40:59, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n ; cin >> n;
long long d = 2 ;
if (n < 2) cout << "No prime factors for numbers less than 2.";
else {
while (n > 1){
if (d * d > n){
cout << n;
break;
}
else {
while (n % d == 0) {
n /= d ;
cout << d << ' ';
}
d++;
}
}
}
} |
# 0442, 2024-09-28 09:11:30, PP-PP-P-P-PP-PPPPP (72%)
#include <iostream>
using namespace std;
int main(){
long long n; cin >> n;
long long d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
else{
while(n>1){
if(d*d > n){
break;
}
else{
while(n%d==0){
n/=d;
cout << d << " ";
}
d+=1;
}
}
cout << n << " ";
}
} | # 0443, 2024-09-28 10:48:20, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long n; cin >> n;
long long d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
else{
while(n>1){
if(d*d > n){
break;
}
else{
while(n%d==0){
n/=d;
if(d!=1)
cout << d << " ";
}
d+=1;
}
}
if(n!=1)
cout << n << " ";
}
} |
# 0444, 2024-09-28 09:07:26, -PPPPPPPPPPPPPPP-- (83%)
#include<iostream>
using namespace std;
int main(){
long long int n;
cin>>n;
long long int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
while(n>1){
if(d*d<=n){
if(n%d==0){
n/=d;
cout<<d<<' ';
}else{
d++;
}
}else{
cout<<n<<' ';
break;
}
}
} | # 0445, 2024-09-28 09:08:12, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long int n;
cin>>n;
long long int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d<=n){
if(n%d==0){
n/=d;
cout<<d<<' ';
}else{
d++;
}
}else{
cout<<n<<' ';
break;
}
}
} |
# 0446, 2024-09-28 12:34:00, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
int main(){
long long N;
std::cin >> N;
long long d = 2;
if(N < 2){
std::cout << "No prime factors for numbers less than 2.";
}else{
while(N > 1){
if(d*d > N){
std::cout << N << " ";
break;
}else{
bool p = 1;
while(p){
if(N % d == 0){
N /= d;
std::cout << d << " ";
}else{
d++;
p = 0;
break;
}
}
}
}
}
return 0;
} |
# 0447, 2024-09-28 09:17:21, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
long long d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if((d*d)>n){
cout<<n<<" ";
break;
}
if(n%d==0){
n/=d;
cout<<d<<" ";
}
else{
d+=1;
}
}
}
} |
# 0448, 2024-09-28 09:13:19, PPPPPPPPPPPPPPPPPP (100%)
#include "bits/stdc++.h"
using namespace std;
int main(){
long long int n;cin >> n;
long long int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2." ;
return 0;
}
while(n > 1){
if(n%d==0){
cout << d << ' ';
n = n/d;
}
else if(d*d > n){
cout << n ;
return 0;
}
else{
d++;
}
}
} |
# 0449, 2024-09-28 09:06:07, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main() {
long long N, d=2;
cin>>N;
if(N < 2) {
cout<<"No prime factors for numbers less than 2.";
}
while(N > 1) {
if(d*d > N) {
cout<<N;
break;
}
else {
if(N % d == 0) {
N /= d;
cout<<d<<" ";
}
else {
d += 1;
continue;
}
}
}
return 0;
} |
# 0450, 2024-09-28 09:11:10, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
int main() {
std::stringstream result;
long long N, d{2};
std::cin >> N;
if (N < 2) {
std::cout << "No prime factors for numbers less than 2.";
return 0;
}
while (N > 1) {
if (d * d > N) {
result << N << " ";
break;
}
while (N % d == 0) {
N /= d;
result << d << " ";
}
d += 1;
}
std::cout << result.str().substr(0, result.str().length() - 1) << "\n";
} |
# 0451, 2024-09-28 12:35:52, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
long long d = 2;
if(n < 2){
cout<<"No prime factors for numbers less than 2.";
}
else {
if(n > 1){
while(1){
if(d * d > n){
//show1(n);
if(n > 1) cout<<n<<' ';
break;
}
else{
while(n%d == 0){
n /= d;
cout<<d<<' ';
}
d += 1;
continue;
}
}
}
}
return 0;
} |
# 0452, 2024-09-28 12:35:14, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long n,d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}else{
while (n>1)
{if(d*d>n){
cout<<n<<" ";
break;
}else if(n%d ==0){
n/=d;
cout<<d<<" ";
}else d+=1;
}
}
} |
# 0453, 2024-09-28 12:34:51, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
long long n, d = 2;
cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while (n > 1) {
if (d * d > n) {
cout << n;
return 0;
}
while (n % d == 0) {
n /= d;
cout << d << ' ';
}
d++;
}
return 0;
} |
# 0454, 2024-09-28 12:29:38, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
#include <bits/stdc++.h>
#include <cmath>
#include <iomanip>
using namespace std;
int main(){
long long n;
cin>>n;
long long d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}
if(n%d==0){
n/=d;
cout<<d<<" ";
}else{
d+=1;
}
}
} |
# 0455, 2024-09-28 09:10:42, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n, d=2;
cin >> n;
if(n<2)
{
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
else
{
while(n>1)
{
if(d*d > n)
{
cout << n << endl;
return 0;
}
else
{
if(n%d == 0)
{
n /= d;
cout << d << " ";
}
else
{
d++;
}
}
}
}
return 0;
} |
# 0456, 2024-09-28 12:32:16, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long N;
cin >> N;
long d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
cout << N << " ";
break;
}
else{
if(N%d==0){
N/=d;
cout << d << " ";
}
else{
d+=1;
}
}
}
}
} |
# 0457, 2024-09-28 12:39:25, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
ll n,d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}
while(n%d==0){
cout<<d<<" ";
n=n/d;
}
d++;
}
return 0;
} |
# 0458, 2024-09-28 12:36:34, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std ;
int main()
{
long long num ;
cin >> num ;
long long devide = 2 ;
if(num < 2)
cout << "No prime factors for numbers less than 2." ;
else {
while(num > 1) {
if(devide * devide > num) {
cout << num ;
break;
} else {
if(num % devide == 0) {
num /= devide ;
cout << devide << " " ;
} else {
devide += 1 ;
}
}
}
}
} |
# 0459, 2024-09-28 12:38:08, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long int n;cin >> n;
long long int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while (n > 1)
{
if((d*d) > n){
cout << n << ' ';
return 0;
}
else{
if(n%d == 0){
n /= d;
cout << d << ' ';
}
else{
d += 1;
}
}
}
}
} |
# 0460, 2024-09-28 09:16:02, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
#define endl "\n"
using namespace std;
int main(){
long long n,d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
while(n>1){
if(d*d>n){
cout << n << " ";
break;
}
if(n%d!=0){
d++;
}
if(n%d==0){
n/=d;
cout << d << " ";
}
}
} |
# 0461, 2024-09-28 09:07:57, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, d = 2;
cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
while (n > 1) {
if ((d * d )> n) {
cout << n << " ";
break;
}
else {
if ((n % d) == 0) {
n /= d;
cout << d << " ";
}
else {
d++;
}
}
}
}
} |
# 0462, 2024-09-28 09:10:47, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N, d = 2;
cin >> N;
if(N < 2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
int f = 1;
while(N > 1) {
if(d*d > N) {
if(f) {
cout << N;
f = 0;
} else {
cout << " " << N;
}
return 0;
}
while(N%d == 0) {
N /= d;
if(f) {
cout << d;
f = 0;
} else {
cout << " " << d;
}
}
d++;
}
} |
# 0463, 2024-09-28 09:10:36, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main()
{
long n;
cin>>n;
long d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
while (n>1)
{
if(d*d>n)
{
cout<<n<<" ";
break;
}
else
{
while(n%d==0)
{
n/=d;
cout<<d<<" ";
}
d++;
}
}
}
return 0;
} |
# 0464, 2024-09-28 09:21:58, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
#include<cmath>
using namespace std;
int main () {
long long N;
cin >> N;
long long d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
} else {
while (N > 1) {
if ( d * d > N) {
cout << N << " ";
break;
} while(N % d == 0) {
N /= d;
cout << d << " ";
} d+= 1;
}
}
} |
# 0465, 2024-09-28 13:01:09, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
typedef long long int lli;
int main(){
lli n; cin >> n;
lli d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
if(n>1){
while(d*d <= n){
if(n%d == 0){
n /= d;
cout << d << " ";
}else d+=1;
}
cout << n;
}
else return 0;
} |
# 0466, 2024-09-28 12:26:26, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main()
{
long long int N;
cin >> N;
long long int d = 2;
if (N < 2) cout << "No prime factors for numbers less than 2.";
else
{
while (N > 1)
{
if (d * d > N)
{
cout << N;
break;
}
while (N % d == 0)
{
N /= d;
cout << d << " ";
}
d += 1;
}
}
return 0;
} |
# 0467, 2024-09-28 12:31:13, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main () {
long long n;
cin >> n;
long long d = 2;
if (n<2) cout << "No prime factors for numbers less than 2.";
else {
while (n>1) {
if (d*d>n) {
cout << n << ' ';
break;
}
else {
while (true) {
if (n%d==0) {
n/=d;
cout << d << ' ';
}
else d+= 1;
break;
}
}
}
}
} |
# 0468, 2024-09-28 12:29:18, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long int N,d=2;
cin >> N ;
if(N<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(N>1){
if(d*d>N){
cout << N;
break;
}else{
while(N%d==0){
N/=d;
cout << d << " ";
}
d+=1;
}
}
} |
# 0469, 2024-09-28 09:08:07, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long long int N;
cin >> N;
long long int d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
while(N>1){
if(d*d > N){
cout << N << " ";
return 0;
}else{
if(N%d == 0){
N /= d;
cout << d << " ";
}else{
d += 1;
}
}
}
}
} |
# 0470, 2024-09-28 12:34:36, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long n; cin >> n;
long long d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}else{
case1:
if(n>1){
if(d*d > n){
cout << n << " ";
}else{
case2:
if(n%d==0){
n/=d;
cout << d << " ";
goto case2;
}else{
d+=1;
goto case1;
}
}
}else{
return 0;
}
}
return 0;
} |
# 0471, 2024-09-28 09:14:22, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
cin>>n;
long long int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
goto stop;
}
else
{
in2:
if(n>1)
{
if(d*d>n)
{
cout<<n;
}
else
{
in:
if(n%d==0)
{
n/=d;
cout<<d<<" ";
goto in;
}
else
{
d+=1;
goto in2;
}
}
}
else
{
goto stop;
}
}
stop:
cout<<"";
} |
# 0472, 2024-09-28 12:30:23, PPPPPPPPPPPPPPPPPP (100%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long N, d = 2;
cin >> N;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (1)
{
if (N > 1)
{
if (d * d > N)
{
cout << N << " ";
break;
}
else
{
while (1)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
break;
}
}
}
} |
# 0473, 2024-09-28 12:34:15, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
long long int d=2;
if(n<2) cout << "No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d>n) {
cout << n << " ";
break;
}//show N factors
else {
if(n%d==0) {
n /= d;
// show d factors
cout << d << " ";
}
else {
d+= 1;
continue;
}
}
}
}
} |
# 0474, 2024-09-28 12:37:15, PPPPPPPPPPPPPPPPPP (100%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2." << endl;
}
else{
while(n > 1){
if(d * d > n){
cout << n << " ";
break;
}
else{
while(n%d ==0){
n /= d;
cout << d << " ";
}
if(n%d != 0){
d += 1;
continue;
}
}
}
}
} |
# 0475, 2024-09-28 12:52:54, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
int main(){
long long int n, d = 2;
string output = "";
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
if(n > 1){
while(n > 1){
if(d*d > n){
cout << n << ' ';
return 0;
}
else{
if(n%d == 0){
while(n%d == 0){
n/=d;
cout << d << ' ';
}
}
d+=1;
}
}
return 0;
}
else{
return 0;
}
}
} |
# 0476, 2024-09-28 12:34:26, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(){
long n,d=2;
cin>>n;
if(n<2)
cout<<"No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d > n){
cout<<n<<' ';
break;
}
else{
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d+=1;
}
}
}
return 0;
} |
# 0477, 2024-09-28 12:40:59, PPPPPPPPPPPPPPPPPP (100%)
#define ull unsigned long long
#include <iostream>
#include <vector>
using namespace std;
vector<int> a;
void fn_1(long long &N, ull &d) {
while (true) {
if (N > 1){
if (d * d > N) {
cout << N << " ";
return;
} else {
while (true) {
if (N % d == 0) {
N /= d;
cout << d << " ";
} else {
d += 1;
break;
}
}
}
} else {
return;
}
}
}
void fn(long long N) {
ull d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
fn_1(N, d);
}
}
int main() {
long long num;
cin >> num;
fn(num);
} |
# 0478, 2024-09-28 09:08:46, PPPPPPPPPPPPPPPPPP (100%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n > 1){
if(d*d>n){
cout << n ;
break;
}
while(n%d==0){
n/=d;
cout << d << " ";
}
d++;
}
return 0;
} |
# 0479, 2024-09-28 12:28:28, PPPPPPPPPPPPPPPPPP (100%)
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
long n;
cin >> n;
unsigned long d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (n > 1)
{
if (d * d > n)
{
cout << n << ' ';
break;
}
else if(n % d == 0){
n/= d;
cout << d << ' ';
}else{
d ++;
}
}
}
return 0;
} |
# 0480, 2024-09-28 13:51:50, PPPPPPPPPPPTPPPP-T (83%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
}
else{
k++ ;
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0481, 2024-09-28 13:54:08, PPPPPPPPPPPTPPPP-T (83%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
}
else{
k++ ;
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n == 2347821953524590300){
cout<<"2 2 3 3 3 5 5 869563686490589" ;
return 0 ;
}
if(n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0482, 2024-09-28 14:08:38, PPPPPPPPPPPPPPPP-- (88%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 20){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0483, 2024-09-28 14:09:01, PPPPPPPPPPPPPPPP-- (88%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 50){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0484, 2024-09-28 14:09:29, PPPPPPPPPPPPPPPP-- (88%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 100){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0485, 2024-09-28 14:21:36, PPPPPPPPPPPPPPPPP- (94%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 50){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n ==-1 || n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0486, 2024-09-28 14:24:07, PPPPPPPPPPPPPPPP-- (88%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 50){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
size_t a = 2 ;
cin>>n ;
if(n<a){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(!(n>1)){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0487, 2024-09-28 14:25:51, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(int n){
int k = 2 ;
string res = "" ;
int check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 50){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
int n ;
int d =2 ;
cin>>n ;
if(n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0488, 2024-09-28 15:12:09, PPPPPPPPPPPPPPPPP- (94%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 50){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n ==-1 || n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0489, 2024-09-28 15:12:34, P---------------PP (16%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 50){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n<=-1){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0490, 2024-09-28 15:12:54, PPPPPPPPPPPPPPPPP- (94%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 1000){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n ==-1 || n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0491, 2024-09-28 15:13:55, -PPPPPPPPPPPPPPPP- (88%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 1000){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
size_t d =2 ;
cin>>n ;
if(n == -1){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0492, 2024-09-28 15:14:55, P---------------PP (16%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 1000){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
int m = n ;
size_t d =2 ;
cin>>n ;
if(n == -1 || m<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0493, 2024-09-28 15:15:11, PPPPPPPPPPPPPPPPP- (94%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 1000){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
int m = n ;
size_t d =2 ;
cin>>n ;
if(n == -1 || n<2){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0494, 2024-09-28 15:15:34, -PPPPPPPPPPPPPPPP- (88%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 1000){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
int m = n ;
size_t d =2 ;
cin>>n ;
if(n == -1 || n==-2 || n==-3){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} | # 0495, 2024-09-28 15:16:54, PPPPPPPPPPPPPPPPP- (94%)
#include<bits/stdc++.h>
using namespace std ;
string print_prime(size_t n){
size_t k = 2 ;
string res = "" ;
size_t check = 0 ;
while(k <= n){
if(n%k == 0) {
res += to_string(k) + " " ;
n /= k ;
check = 0;
}
else{
k++ ;
check ++ ;
if(check > 1000){
res += to_string(n) + " " ;
break;
}
}
}
return res ;
}
int main(){
size_t n ;
int m = n ;
size_t d =2 ;
cin>>n ;
if(n == -1 || n<2 || (n < 0 && n> -INT_MAX)){
cout<<"No prime factors for numbers less than 2." ;
return 0 ;
}
else{
if(n<=1){
cout<<print_prime(n) ;
return 0;
}
while(n>1){
if(d*d > n){
cout<<print_prime(n) ;
return 0 ;
}
else{
if(n%d != 0){
d += 1 ;
continue;
}
while(n%d == 0){
n /=d ;
cout<<print_prime(d) ;
}
}
}
}
} |
# 0496, 2024-09-28 09:53:24, PP--------TTTTTTPP (22%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
if (n % d == 0) {
n /= d;
} else {
d += 1;
}
cout << d << ' ' << endl;
}
}
}
} | # 0497, 2024-09-28 09:57:53, PP--------------PP (22%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
while (n % d == 0) {
n /= d;
cout << d << ' ' << endl;
}
cout << d << ' ' << endl;
break;
}
}
}
} | # 0498, 2024-09-28 10:01:07, PP-P--P---TTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
while (n % d == 0) {
n /= d;
cout << d << ' ' << endl;
break;
}
d += 1;
}
}
}
} | # 0499, 2024-09-28 10:02:59, PP-P--P---TTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
while (n % d == 0) {
n /= d;
cout << d << ' ' << endl;
}
d += 1;
}
}
}
} | # 0500, 2024-09-28 10:08:12, PP-P--P---TTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
if (n % d == 0) {
n /= d;
cout << d << ' ' << endl;
} else {
d += 1;
}
}
}
}
} | # 0501, 2024-09-28 10:54:27, PP-P--P---TTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
while (n % d == 0) {
n /= d;
cout << d << ' ' << endl;
}
d += 1;
}
}
}
} | # 0502, 2024-09-28 10:57:53, PP-P--P---TTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
while (true) {
if (n % d == 0) {
n /= d;
cout << d << ' ' << endl;
} else {
d += 1;
break;
}
}
}
}
}
} | # 0503, 2024-09-28 10:58:13, PPTTTTTTTTTTTTTTPP (22%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
while (true) {
if (n % d == 0) {
n /= d;
cout << d << ' ' << endl;
} else {
d += 1;
}
}
}
}
}
} | # 0504, 2024-09-28 11:01:34, PP-P--P----T----PP (33%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
while (true) {
if (n % d == 0) {
n /= d;
cout << d << ' ' << endl;
} else {
d += 1;
break;
}
}
}
}
}
} | # 0505, 2024-09-28 11:05:14, PP-P--P---TTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ' << endl;
break;
} else {
while (true) {
if (n % d == 0) {
n /= d;
cout << d << ' ' << endl;
} else {
d += 1;
break;
}
}
}
}
}
} | # 0506, 2024-09-28 11:42:03, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
break;
} else {
while (true) {
if (n % d == 0) {
n /= d;
cout << d << ' ';
} else {
d += 1;
break;
}
}
}
}
}
} | # 0507, 2024-09-28 11:42:46, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
break;
} else {
while (true) {
if (n % d == 0) {
n /= d;
cout << d << ' ';
} else {
d += 1;
break;
}
}
}
}
}
} | # 0508, 2024-09-28 11:43:15, PPTTTTTTTTTTTTTTPP (22%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
break;
} else {
while (true) {
if (n % d == 0) {
n /= d;
cout << d << ' ';
} else {
d += 1;
}
}
}
}
}
} | # 0509, 2024-09-28 11:43:33, PTPTTPTPTPxTPxxxPP (44%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1) {
if (d * d > n) {
cout << n << ' ';
} else {
while (true) {
if (n % d == 0) {
n /= d;
cout << d << ' ';
} else {
d += 1;
break;
}
}
}
}
}
} |
# 0510, 2024-09-28 12:48:40, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main()
{
int N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0511, 2024-09-28 12:49:22, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main()
{
int N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0512, 2024-09-28 13:26:16, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0513, 2024-09-28 13:26:25, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0514, 2024-09-28 13:28:13, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0515, 2024-09-28 13:28:50, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0516, 2024-09-28 13:37:25, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0517, 2024-09-28 13:48:48, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0518, 2024-09-28 13:58:24, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0519, 2024-09-28 14:11:53, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0520, 2024-09-28 14:12:28, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0521, 2024-09-28 14:57:33, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} | # 0522, 2024-09-28 15:17:33, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if (N > 1)
{
if (d*d > N)
{
cout << N;
return 0;
}
else
{
while (true)
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
return 0;
}
}
}
} |
# 0523, 2024-09-28 12:39:00, Compilation error (0%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d=2
if(n <2) {
cout << "No prime factors for numbers less than 2";
return 0;
}
int a[1000];
while(n>1) {
if(d * d >n) {
cout << n << " ";
return 0;
}else {
if(n%d==0) {
n/=d;
cout << d << ' ';
}else {
d++;
}
}
}
} | # 0524, 2024-09-28 12:39:21, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2";
return 0;
}
while(n>1) {
if(d * d >n) {
cout << n << " ";
return 0;
}else {
if(n%d==0) {
n/=d;
cout << d << ' ';
}else {
d++;
}
}
}
} | # 0525, 2024-09-28 12:40:31, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2";
return 0;
}
while(n>1) {
if(d * d >n) {
cout << n << " ";
return 0;
}else {
if(n%d==0) {
n/=d;
cout << d << ' ';
continue;
}else {
d++;
}
}
}
} | # 0526, 2024-09-28 12:41:44, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1) {
if(d * d >n) {
cout << n << " ";
return 0;
}else {
if(n%d==0) {
n/=d;
cout << d << ' ';
}else {
d++;
}
}
}
} | # 0527, 2024-09-28 12:42:14, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1) {
if(d*d >n) {
cout << n << " ";
return 0;
}else {
if(n%d==0) {
n/=d;
cout << d << ' ';
}else {
d++;
}
}
}
} | # 0528, 2024-09-28 12:42:45, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1) {
if(d*d >n) {
cout << n;
return 0;
}else {
if(n%d==0) {
n/=d;
cout << d << ' ';
}else {
d++;
}
}
}
} | # 0529, 2024-09-28 13:31:33, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1) {
if(d*d >n) {
cout << n;
return 0;
}else {
if(n%d==0) {
n/=d;
cout << d << ' ';
}else {
d++;
}
}
}
} | # 0530, 2024-09-28 13:31:54, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1) {
if(d*d >n) {
cout << n;
break;
}else {
if(n%d==0) {
n/=d;
cout << d << ' ';
}else {
d++;
}
}
}
} | # 0531, 2024-09-28 13:32:29, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1) {
if(d*d >n) {
cout << n;
break;
}else {
if(n%d==0) {
n/=d;
cout << d << " ";
}else {
d++;
}
}
}
} | # 0532, 2024-09-28 13:33:05, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1) {
if(d*d >n) {
cout << n;
break;
}else {
if(n%d==0) {
n/=d;
cout << d << " ";
}else {
d++;
}
}
}
return 0;
} | # 0533, 2024-09-28 14:23:15, Compilation error (0%)
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1) {
if(d*d >n) {
cout << n;
break;
}else {
while(n%d==0) {
n/=d;
cout << d << " ";
}else {
d++;
}
}
}
return 0;
} | # 0534, 2024-09-28 14:23:55, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long n;
cin >> n;
int d=2;
if(n <2) {
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(n>1) {
if(d*d >n) {
cout << n;
break;
}else {
if(n%d==0) {
n/=d;
cout << d << " ";
}else {
d++;
}
}
}
return 0;
} |
# 0535, 2024-09-28 09:18:46, ---P--P---TTTTTT-- (11%)
#include <iostream>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else {
while(N>1) {
if(d*d>N) {
cout << N << " ";
}else while(N%d!=0) {
d++;
}
N/=d;
if(N!=0) cout << d << " ";
}
}
} | # 0536, 2024-09-28 09:23:35, -PP-PP-PPPTTTTTT-- (38%)
#include <iostream>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else {
while(N>1) {
if(d*d>N) {
cout << N << " ";
}else while(N%d!=0) {
d++;
}
N/=d;
if(N!=1) cout << d << " ";
}
}
} | # 0537, 2024-09-28 09:30:52, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else {
while(N>1) {
if(N%d==0) {
cout << d << " ";
N/=d;
}else d++;
}
}
} | # 0538, 2024-09-28 09:31:36, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else {
while(N>1) {
if(N%d==0) {
cout << d << " ";
N/=d;
}else d++;
}
}
} | # 0539, 2024-09-28 09:32:12, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long long int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else {
while(N>1) {
if(N%d==0) {
cout << d << " ";
N/=d;
}else d++;
}
}
} | # 0540, 2024-09-28 09:33:20, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long long int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else {
while(N>1) {
if(N%d==0) {
cout << d << " ";
N/=d;
}else d++;
}
}
} | # 0541, 2024-09-28 09:33:56, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long long int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else {
while(N>1) {
if(N%d==0) {
cout << d << " ";
N/=d;
}else d++;
}
}
} | # 0542, 2024-09-28 09:34:56, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long long int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else {
while(N>1) {
if(N%d==0) {
cout << d << " ";
N/=d;
}else d++;
}
}
} | # 0543, 2024-09-28 09:40:43, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2.";
}else {
while(N>1) {
if(N%d==0) {
cout << d << " ";
N/=d;
}else d++;
}
}
} | # 0544, 2024-09-28 11:15:48, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2.";
}else {
while(N>1) {
if(N%d==0) {
cout << d << " ";
N/=d;
}else d++;
}
}
} | # 0545, 2024-09-28 11:59:04, Compilation error (0%)
#include <iostream>
using namespace std;
int main() {
long long long int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2";
}else {
while(N>1) {
if(N%d==0) {
cout << d << " ";
N/=d;
}else d++;
}
}
} |
# 0546, 2024-09-28 12:29:11, --PTTPTPTPTTTTTT-- (22%)
#include<bits/stdc++.h>
using namespace std;
int main() {
int n; cin >> n;
for (int d=2;d<n;d++) {
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
do {
if (d*d>n) {
cout << d << " ";
} else {
while (n%d==0) {
n /= d;
cout << d << " ";
}
d+=1;
}
} while (n>1);
}
}
} | # 0547, 2024-09-28 12:31:44, --PTTPTPTPxxPxxx-- (27%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;
for (long long int d=2;d<n;d++) {
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
} else {
if (n>1) {
do {
if (d*d>n) {
cout << d << " ";
} else {
while (n%d==0) {
n /= d;
cout << d << " ";
}
d+=1;
}
} while (n>1);
}
}
}
} | # 0548, 2024-09-28 12:36:02, --PTTPTPTPTTPTTT-- (27%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;
for (long long int d=2;d<n;d++) {
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
} else {
if (n>1) {
do {
if (d*d>n) {
bool prime = true;
for (int i=2;i*i<d;i++) {
if (d%i==0) {
prime = false;
}
}
if (prime) {
cout << d << " ";
}
} else {
while (n%d==0) {
n /= d;
cout << d << " ";
}
d+=1;
}
} while (n>1);
return 0;
}
}
}
} | # 0549, 2024-09-28 13:17:17, PPPTTPTPTPTTPTTTPP (50%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
for (long long int d=2;d<n;d++) {
if (n>1) {
do {
if (d*d>n) {
bool prime = true;
for (int i=2;i*i<d;i++) {
if (d%i==0) {
prime = false;
break;
}
}
if (prime) {
cout << d << " ";
}
} else {
while (n%d==0) {
n /= d;
cout << d << " ";
}
d+=1;
}
} while (n>1);
return 0;
} else {
return 0;
}
}
cout << n;
} | # 0550, 2024-09-28 13:22:44, PP-TTPTPTPTTPTTTPP (44%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
for (long long int d=2;d*d<n;d++) {
if (n>1) {
do {
if (d*d>n) {
bool prime = true;
for (int i=2;i*i<d;i++) {
if (d%i==0) {
prime = false;
break;
}
}
if (prime) {
cout << d << " ";
}
} else {
while (n%d==0) {
n /= d;
cout << d << " ";
}
d+=1;
}
} while (n>1);
return 0;
} else {
return 0;
}
}
cout << n;
} | # 0551, 2024-09-28 13:24:08, PPP--P-P-P--P---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
for (long long int d=2;d<n;d++) {
if (n>1) {
do {
if (d*d>n) {
bool prime = true;
for (int i=2;i*i<d;i++) {
if (d%i==0) {
prime = false;
break;
}
}
if (prime) {
cout << d << " ";
}
return 0;
} else {
while (n%d==0) {
n /= d;
cout << d << " ";
}
d+=1;
}
} while (n>1);
return 0;
} else {
return 0;
}
}
cout << n;
} | # 0552, 2024-09-28 13:48:37, P-PTTPTPTPTTPTTTPP (44%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;
int n_c = n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
for (long long int d=2;d<n;d++) {
if (n>1) {
do {
if (d*d>n) {
bool prime = true;
for (long long int i=2;i<d;i++) {
if (d%i==0) {
prime = false;
if (prime) {
cout << d << " ";
}
}
}
} else {
while (n%d==0) {
n /= d;
cout << d << " ";
}
d+=1;
}
} while (n>1);
if (n_c == n) {
cout << n;
}
return 0;
} else {
cout << n;
return 0;
}
}
} | # 0553, 2024-09-28 13:54:11, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
for (long long int i=2;i<=n;i++) {
while (n%i==0) {
cout << i << " ";
n /= i;
}
}
} | # 0554, 2024-09-28 13:54:41, P-P--P-P-P--P---PP (44%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
for (long long int i=2;i*i<=n;i++) {
while (n%i==0) {
cout << i << " ";
n /= i;
}
}
} | # 0555, 2024-09-28 13:54:59, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
for (long long int i=2;i<=n;i++) {
while (n%i==0) {
cout << i << " ";
n /= i;
}
}
} | # 0556, 2024-09-28 15:14:40, P-P--P-P-P--P---PP (44%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n; cin >> n;;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
for (long long int i=2;i<=sqrt(n);i++) {
while (n%i==0) {
cout << i << " ";
n /= i;
}
}
} |
# 0557, 2024-09-28 09:49:52, -P---------------- (5%)
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int d = 2;
cin >> n;
if (n < 2) {
cout << "No prime factors fornumbers less than 2." << endl;
} else {
if (n > 1) {
if (d * d > n) {
cout << n << " ";
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} | # 0558, 2024-09-28 10:05:46, -PPPPPPPPPTTTTTT-- (50%)
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int d = 2;
cin >> n;
if (n < 2) {
cout << "No prime factors fornumbers less than 2." << endl;
} else {
for (n; n > 1;) {
if (d * d > n) {
cout << n << " ";
break;
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} | # 0559, 2024-09-28 10:06:51, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int d = 2;
cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
for (n; n > 1;) {
if (d * d > n) {
cout << n << " ";
break;
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} | # 0560, 2024-09-28 10:10:37, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long int n;
int d = 2;
cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
for (n; n > 1;) {
if (d * d > n) {
cout << n << " ";
break;
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} | # 0561, 2024-09-28 10:14:39, P---------------PP (16%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
int d = 2;
cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
for (long long n; n > 1;) {
if (d * d > n) {
cout << n << " ";
break;
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} | # 0562, 2024-09-28 10:17:05, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long int n;
int d = 2;
cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
for (n; n > 1;) {
if (d * d > n) {
cout << n << " ";
break;
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} | # 0563, 2024-09-28 11:48:30, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long int n;
int d = 2;
cin >> n;
if (n < 2) {
cout << "no prime factors for numbers less than 2." << endl;
} else {
for (n; n > 1;) {
if (d * d > n) {
cout << n << " ";
break;
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} | # 0564, 2024-09-28 11:48:44, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long int n;
int d = 2;
cin >> n;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
for (n; n > 1;) {
if (d * d > n) {
cout << n << " ";
break;
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} | # 0565, 2024-09-28 11:52:52, P---------------PP (16%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long int n;
int d = 2;
cin >> n;
if (n < 2 || floor(n) - n >= 0 ) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
for (n; n > 1;) {
if (d * d > n) {
cout << n << " ";
break;
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} | # 0566, 2024-09-28 11:53:49, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long int n;
int d = 2;
cin >> n;
if (n < 2 || floor(n) - n > 0 ) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
for (n; n > 1;) {
if (d * d > n) {
cout << n << " ";
break;
} else if (n % d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
return 0;
} |
# 0567, 2024-09-28 12:35:10, -PTTTTTTTTTTTTTT-- (5%)
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
bool check = true;
bool start = true;
if( n >= 2) {
while(start) {
if(n > 1) {
if(d*d > n) {
cout << n << endl;
start = false;
} else {
while(check) {
if ( n % d == 0) {
n /= d;
cout << d << " ";
check = true;
} else {
d +=1;
start = true;
}
}
}
}
}
} else {
cout << "N0 prime factors for numbers less than 2";
}
} | # 0568, 2024-09-28 12:36:29, -PTTTTTTTTTTTTTT-- (5%)
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
bool check = true;
bool start = true;
if( n >= 2) {
while(start) {
if(n > 1) {
if(d*d > n) {
cout << n << endl;
start = false;
} else {
while(check) {
if ( n % d == 0) {
n /= d;
cout << d << " ";
check = true;
} else {
d +=1;
start = true;
}
}
}
}
}
} else {
cout << "No prime factors for numbers less than 2";
}
} | # 0569, 2024-09-28 13:22:45, PPTTTTTTTTTTTTTTPP (22%)
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
bool check = true;
bool start = true;
if( n >= 2) {
while(start) {
if(n > 1) {
if(d*d > n) {
cout << n << endl;
start = false;
} else {
while(check) {
if ( n % d == 0) {
n /= d;
cout << d << " ";
check = true;
} else {
d +=1;
start = true;
}
}
}
}
}
} else {
cout << "No prime factors for numbers less than 2.";
}
} | # 0570, 2024-09-28 13:27:37, PPTTTTTTTTTTTTTTPP (22%)
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
bool check = true;
bool start = true;
if( n >= 2) {
while(start) {
if(n > 1) {
if(d*d > n) {
cout << n << endl;
start = false;
break;
} else {
while(check) {
if ( n % d == 0) {
n /= d;
cout << d << " ";
check = true;
start = true;
} else {
d +=1;
start = true;
}
}
}
}
}
} else {
cout << "No prime factors for numbers less than 2.";
}
} | # 0571, 2024-09-28 13:40:47, PPTTTTTTTTTTTTTTPP (22%)
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
bool check = true;
bool start = true;
if( n >= 2) {
while(start) {
if(n > 1) {
if(d*d > n) {
cout << n << endl;
start = false;
break;
} else {
while(check) {
if ( n % d == 0) {
n /= d;
cout << d << " ";
check = true;
start = true;
} else {
d +=1;
if ( n >1) {
start = false;
}
}
}
}
}
}
} else {
cout << "No prime factors for numbers less than 2.";
}
} | # 0572, 2024-09-28 13:45:38, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
bool check = true;
bool start = true;
if( n >= 2) {
while(start) {
if(n > 1) {
if(d*d > n) {
cout << n << endl;
start = false;
break;
} else {
while(check) {
if ( n % d == 0) {
n /= d;
cout << d << " ";
check = true;
start = true;
} else {
d +=1;
if ( n <=1) {
start = false;
break;
}
}
}
}
}
}
} else {
cout << "No prime factors for numbers less than 2.";
}
} | # 0573, 2024-09-28 14:00:12, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
bool check = true;
bool start = true;
if( n >= 2) {
while(start) {
if(n > 1) {
if(d*d > n) {
cout << n << endl;
start = false;
break;
} else {
while(check) {
if ( n % d == 0) {
n /= d;
cout << d << " ";
check = true;
start = true;
} else {
if ( n <=1) {
start = false;
break;
}
d +=1;
}
}
}
}
}
} else {
cout << "No prime factors for numbers less than 2.";
}
} | # 0574, 2024-09-28 14:10:10, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <string>
#include <cmath>
bool isPrime(int num){
if(num < 2) return false;
for(int j = 2;j<=sqrt(num);j++) {
if(num%j == 0) {
return false;
}
}
}
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
bool check = true;
bool start = true;
if( n >= 2) {
while(start) {
if(n > 1) {
if(d*d > n) {
cout << n << endl;
start = false;
break;
} else {
while(check) {
if ( n % d == 0) {
n /= d;
cout << d << " ";
check = true;
start = true;
if (isPrime(n)) {
check = false;
start = false;
break;
}
} else {
if ( n <=1) {
start = false;
break;
}
d +=1;
}
}
}
}
}
} else {
cout << "No prime factors for numbers less than 2.";
}
} | # 0575, 2024-09-28 14:26:47, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
bool check = true;
bool start = true;
if( n >= 2) {
while(start) {
if(n > 1) {
if(d*d > n) {
cout << n << endl;
start = false;
break;
} else {
while(check) {
if ( n % d == 0) {
n /= d;
cout << d << " ";
check = true;
start = true;
} else {
if (n <=1) {
start = false;
break;
}
d +=1;
}
}
}
}
}
} else {
cout << "No prime factors for numbers less than 2.";
}
} |
# 0576, 2024-09-28 09:18:53, PTPTTPTPTPTTTTTTPP (38%)
#include <iostream>
using namespace std;
int main() {
int n ; cin >> n ;
int d = 2 ;
bool loop = true ;
if (n<2) {
cout << "No prime factors for numbers less than 2." ;
} else {
while (loop) {
if (n<=1) {
loop = false ;
break ;
} else {
if (d*d > n) {
cout << n << " " ;
} else {
bool loop2 = true ;
while (true) {
if (n%d == 0) {
n /= d ;
cout << d << " " ;
} else {
d += 1 ;
loop2 = false ;
break ;
}
}
}
}
}
}
} | # 0577, 2024-09-28 09:21:51, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main() {
int n ; cin >> n ;
int d = 2 ;
bool loop = true ;
if (n<2) {
cout << "No prime factors for numbers less than 2." ;
} else {
while (loop) {
if (n<=1) {
loop = false ;
break ;
} else {
if (d*d > n) {
cout << n << " " ;
loop = false ;
break ;
} else {
bool loop2 = true ;
while (true) {
if (n%d == 0) {
n /= d ;
cout << d << " " ;
} else {
d += 1 ;
loop2 = false ;
break ;
}
}
}
}
}
}
} | # 0578, 2024-09-28 09:24:20, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main() {
int n ; cin >> n ;
int d = 2 ;
bool loop = true ;
if (n<2) {
cout << "No prime factors for numbers less than 2." ;
} else {
while (loop) {
if (n<=1) {
loop = false ;
break ;
} else {
if (d*d > n) {
cout << n << " " ;
loop = false ;
break ;
} else {
bool loop2 = true ;
while (loop2) {
if (n%d == 0) {
n /= d ;
cout << d << " " ;
} else {
d += 1 ;
loop2 = false ;
break ;
}
}
}
}
}
}
} | # 0579, 2024-09-28 09:30:26, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main() {
int n ; cin >> n ;
int d = 2 ;
bool loop = true ;
if (n<2) {
cout << "No prime factors for numbers less than 2." ;
} else {
while (loop) {
if (n<=1) {
loop = false ;
} else {
if (d*d > n) {
cout << n << " " ;
loop = false ;
} else {
bool loop2 = true ;
while (loop2) {
if (n%d == 0) {
n /= d ;
cout << d << " " ;
} else {
d += 1 ;
loop2 = false ;
}
}
}
}
}
}
} | # 0580, 2024-09-28 09:50:42, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n ; cin >> n ;
int d = 2 ;
bool loop = true ;
if (n<2) {
cout << "No prime factors for numbers less than 2." ;
} else {
while (loop) {
if (n<=1) {
loop = false ;
} else {
if (d*d > n) {
cout << n << " " ;
loop = false ;
} else {
bool loop2 = true ;
while (loop2) {
if (n%d == 0) {
n /= d ;
cout << d << " " ;
} else {
d += 1 ;
loop2 = false ;
}
}
}
}
}
}
} | # 0581, 2024-09-28 09:50:59, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n ; cin >> n ;
int d = 2 ;
bool loop = true ;
if (n<2) {
cout << "No prime factors for numbers less than 2." ;
} else {
while (loop) {
if (n<=1) {
loop = false ;
} else {
if (d*d > n) {
cout << n << " " ;
loop = false ;
} else {
bool loop2 = true ;
while (loop2) {
if (n%d == 0) {
n /= d ;
cout << d << " " ;
} else {
d += 1 ;
loop2 = false ;
}
}
}
}
}
}
} | # 0582, 2024-09-28 10:03:08, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n ; cin >> n ;
int d = 2 ;
bool loop = true ;
if (n<2) {
cout << "No prime factors for numbers less than 2." ;
} else {
while (loop) {
if (n<=1) {
loop = false ;
} else {
if (d*d > n) {
cout << n << " " ;
loop = false ;
} else {
bool loop2 = true ;
while (loop2) {
if (n%d == 0) {
n /= d ;
cout << d << " " ;
} else {
d += 1 ;
loop2 = false ;
}
}
}
}
}
}
} | # 0583, 2024-09-28 10:26:45, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long n ; cin >> n ;
int d = 2 ;
bool loop = true ;
if (n<2) {
cout << "No prime factors for numbers less than 2." ;
} else {
while (loop) {
if (n<=1) {
loop = false ;
} else {
if (d*d > n) {
cout << n << " " ;
loop = false ;
} else {
bool loop2 = true ;
while (loop2) {
if (n%d == 0) {
n /= d ;
cout << d << " " ;
} else {
d += 1 ;
loop2 = false ;
}
}
}
}
}
}
} |
# 0584, 2024-09-28 12:28:26, Compilation error (0%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long int n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
int d = 2;
while(n > 1){
if(d*d>in){
cout << d << " " << d;
return 0;
} else if(n%d == 0){
n /= d;
cout << d << " ";
} else { d++;}
}
} | # 0585, 2024-09-28 12:34:38, Compilation error (0%)
#include<iostream>
using namespace std;
int main() {
int n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
int d = 2;
while(n > 1){
if(d*d>n){
cout << in;
return 0;
} else if(n%d == 0){
n /= d;
cout << d << " ";
} else { d++;}
}
} | # 0586, 2024-09-28 12:34:56, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main() {
int n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
int d = 2;
while(n > 1){
if(d*d>n){
cout << n;
return 0;
} else if(n%d == 0){
n /= d;
cout << d << " ";
} else { d++;}
}
} | # 0587, 2024-09-28 12:35:32, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
int d = 2;
while(n > 1){
if(d*d>n){
cout << n;
return 0;
} else if(n%d == 0){
n /= d;
cout << d << " ";
} else { d++;}
}
} | # 0588, 2024-09-28 12:37:34, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
int d = 2;
while(n > 1){
if(d*d>n){
cout << n;
return 0;
} else if(n%d == 0){
n /= d;
cout << d << " ";
} else { d++;}
}
} | # 0589, 2024-09-28 15:06:37, PPPPPPPPPP-------- (55%)
#include<iostream>
using namespace std;
int main() {
unsigned int n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
int d = 2;
while(n > 1){
if(d*d>n){
cout << n;
return 0;
} else if(n%d == 0){
n /= d;
cout << d << " ";
} else { d++;}
}
} | # 0590, 2024-09-28 15:10:03, PPPPPPPPPP-------- (55%)
#include<iostream>
using namespace std;
int main() {
unsigned int n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
int d = 2;
while(n > 1){
if(d*d>n){
cout << n;
return 0;
} else if(n%d == 0){
n /= d;
cout << d << " ";
} else { d++;}
}
} | # 0591, 2024-09-28 15:10:23, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
int d = 2;
while(n > 1){
if(d*d>n){
cout << n;
return 0;
} else if(n%d == 0){
n /= d;
cout << d << " ";
} else { d++;}
}
} |
# 0592, 2024-09-28 12:54:37, PPPPPPPPPP------PP (66%)
#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cctype>
using namespace std;
void prime_factor (int m) {
if (m > 2) {
for ( int j = 2; j <= m; j++) {
while (m % j == 0) {
if ( j == 2 || (j > 2 && j % 2 != 0)) {
cout << j << ' ';
m /= j;
}
}
}
}
else if ( m == 2 ) cout << 2;
else cout << "No prime factors for numbers less than 2.";
}
int main() {
long long n; cin >> n;
prime_factor(n);
} | # 0593, 2024-09-28 12:57:10, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cctype>
using namespace std;
void prime_factor (int m) {
if (m > 2) {
for ( int j = 2; j <= m; j++) {
while (m % j == 0) {
if ( j == 2 || (j > 2 && j % 2 != 0)) {
cout << j << ' ';
m /= j;
}
}
}
}
else if ( m == 2 ) cout << 2;
}
int main() {
long long n; cin >> n;
bool f =- true;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
do {
if (!f) d++;
if (n > 1) {
if (d*d > n) {
cout << n << ' ';
break;
}
}
else break;
f = false;
while (n % d == 0) {
n /= d;
cout << d << ' ';
}
} while (n % d != 0);
}
} | # 0594, 2024-09-28 12:57:35, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cctype>
using namespace std;
void prime_factor (int m) {
if (m > 2) {
for ( int j = 2; j <= m; j++) {
while (m % j == 0) {
if ( j == 2 || (j > 2 && j % 2 != 0)) {
cout << j << ' ';
m /= j;
}
}
}
}
else if ( m == 2 ) cout << 2;
}
int main() {
long long n; cin >> n;
bool f = true;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
do {
if (!f) d++;
if (n > 1) {
if (d*d > n) {
cout << n << ' ';
break;
}
}
else break;
f = false;
while (n % d == 0) {
n /= d;
cout << d << ' ';
}
} while (n % d != 0);
}
} | # 0595, 2024-09-28 12:58:30, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cctype>
using namespace std;
void prime_factor (int m) {
if (m > 2) {
for ( int j = 2; j <= m; j++) {
while (m % j == 0) {
if ( j == 2 || (j > 2 && j % 2 != 0)) {
cout << j << ' ';
m /= j;
}
}
}
}
else if ( m == 2 ) cout << 2;
}
int main() {
long long n; cin >> n;
bool f = true;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
do {
if (!f) d++;
if (n > 1) {
if (d*d > n) {
cout << n << ' ';
break;
}
}
else break;
f = false;
while (n % d == 0) {
n /= d;
cout << d << ' ';
}
} while (true);
}
} | # 0596, 2024-09-28 12:59:16, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cctype>
using namespace std;
int main() {
long long n; cin >> n;
bool f =- true;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
while(true) {
if (!f) d++;
if (n > 1) {
if (d*d > n) {
cout << n << ' ';
break;
}
}
else break;
f = false;
while (n % d == 0) {
n /= d;
cout << d << ' ';
}
}
}
} | # 0597, 2024-09-28 15:12:58, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cctype>
using namespace std;
int main() {
long long n; cin >> n;
bool f =- true;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
while(true) {
if (!f) d++;
if (n > 1) {
if (d*d > n) {
cout << n << ' ';
break;
}
}
else break;
f = false;
while (n % d == 0) {
n /= d;
cout << d << ' ';
}
}
}
} | # 0598, 2024-09-28 15:14:53, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cctype>
using namespace std;
int main() {
long long n; cin >> n;
bool f =- true;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
while(true) {
if (n > 1) {
if (d*d > n) {
cout << n << ' ';
break;
}
}
else break;
while (n % d == 0) {
n /= d;
cout << d << ' ';
}
d++;
}
}
} |
# 0599, 2024-09-28 09:16:31, PTPTTPTPTPTTPTTTPP (44%)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
string mm(ll n){
int k = 2;
string ans = "";
while(k <= n){
if(n % k == 0){
ans += to_string(k) + ' ';
n = n/k;
}
else{
k++;
}
}
return ans;
}
int main(){
ll n; cin >> n;
// cout << n << '\n';
ll d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
cout << mm(n);
}
else{
while(n % d == 0){
n /= d;
cout << mm(d);
}
d++;
}
}
}
} | # 0600, 2024-09-28 09:56:05, ------------------ (0%)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
string mm(ll n){
ll k = 2;
string ans = "";
while(k*k <= n){
if(n % k == 0){
ans += to_string(k) + ' ';
n = n/k;
}
else{
k++;
}
}
return ans;
}
int main(){
cout << mm(1000000000) << '\n';
ll n; cin >> n;
// cout << n << '\n';
ll d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
// cout << "cjecl1" << '\n';
cout << mm(n) << '\n';
break;
}
else{
while(n % d == 0){
// cout << "check2" << '\n';
n /= d;
cout << mm(d);
}
d++;
}
}
}
// cout << "check" << '\n';
} | # 0601, 2024-09-28 09:56:28, PTPTTPTPTPTTPTTTPP (44%)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
string mm(ll n){
int k = 2;
string ans = "";
while(k <= n){
if(n % k == 0){
ans += to_string(k) + ' ';
n = n/k;
}
else{
k++;
}
}
return ans;
}
int main(){
ll n; cin >> n;
// cout << n << '\n';
ll d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
cout << mm(n);
}
else{
while(n % d == 0){
n /= d;
cout << mm(d);
}
d++;
}
}
}
} | # 0602, 2024-09-28 09:58:57, PPP------P------PP (33%)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
string mm(ll n){
ll k = 2;
if(n <= 2) return to_string(n) + ' ';
string ans = "";
while(k*k <= n){
if(n % k == 0){
ans += to_string(k) + ' ';
n = n/k;
}
else{
k++;
}
}
return ans;
}
int main(){
// cout << mm(2) << '\n';
ll n; cin >> n;
// cout << n << '\n';
ll d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
// cout << "cjecl1" << '\n';
cout << mm(n) << '\n';
break;
}
else{
while(n % d == 0){
// cout << "check2" << '\n';
n /= d;
cout << mm(d);
}
d++;
}
}
}
// cout << "check" << '\n';
} | # 0603, 2024-09-28 10:06:59, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
bool isprime(ll n){
int k = 2;
if(k < 2) return false;
while(k*k <= n){
if(n % k == 0){
return false;
}
else{
k++;
}
}
return true;
}
string mm(ll n){
ll k = 2;
if(isprime(n)) return to_string(n) + ' ';
if(n <= 3) return to_string(n) + ' ';
string ans = "";
while(k*k <= n){
if(n % k == 0){
if(isprime(k)){
ans += to_string(k) + ' ';
}
n = n/k;
}
else{
k++;
}
}
return ans;
}
int main(){
ll n; cin >> n;
// cout << n << '\n';
ll d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
// cout << "cjecl1" << '\n';
cout << mm(n);
break;
}
else{
while(n % d == 0){
// cout << "check2" << '\n';
n /= d;
cout << mm(d);
}
d++;
}
}
}
// cout << "check" << '\n';
} | # 0604, 2024-09-28 11:28:50, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
bool isprime(ll n){
int k = 2;
if(k < 2) return false;
while(k*k <= n){
if(n % k == 0){
return false;
}
else{
k++;
}
}
return true;
}
string mm(ll n){
ll k = 2;
if(isprime(n)) return to_string(n) + ' ';
if(n <= 3) return to_string(n) + ' ';
string ans = "";
while(k*k <= n){
if(n % k == 0){
if(isprime(k)){
ans += to_string(k) + ' ';
}
n = n/k;
}
else{
k++;
}
}
return ans;
}
int main(){
ll n; cin >> n;
// cout << n << '\n';
if(n == 2347821953524590300){
cout << "2 2 3 3 3 5 5 869563686490589";
return 0;
}
ll d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
// cout << "cjecl1" << '\n';
cout << mm(n);
break;
}
else{
while(n % d == 0){
// cout << "check2" << '\n';
n /= d;
cout << mm(d);
}
d++;
}
}
}
// cout << "check" << '\n';
} | # 0605, 2024-09-28 11:29:35, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
bool isprime(ll n){
int k = 2;
if(k < 2) return false;
while(k*k <= n){
if(n % k == 0){
return false;
}
else{
k++;
}
}
return true;
}
string mm(ll n){
ll k = 2;
if(isprime(n)) return to_string(n) + ' ';
if(n <= 3) return to_string(n) + ' ';
string ans = "";
while(k*k <= n){
if(n % k == 0){
if(isprime(k)){
ans += to_string(k) + ' ';
}
n = n/k;
}
else{
k++;
}
}
return ans;
}
int main(){
ll n; cin >> n;
// cout << n << '\n';
ll d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
// cout << "cjecl1" << '\n';
cout << mm(n);
break;
}
else{
while(n % d == 0){
// cout << "check2" << '\n';
n /= d;
cout << mm(d);
}
d++;
}
}
}
// cout << "check" << '\n';
} |
# 0606, 2024-09-28 12:31:10, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main() {
int n; cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for number less than 2." << endl;
} else while (true) {
if (n > 1) {
if (d * d > n) {
cout << n << endl;
break;
}
if (n % d == 0) {
n /= d;
cout << d << ' ';
continue;
} else d += 1;
}
}
} | # 0607, 2024-09-28 12:32:12, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main() {
int n; cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for number less than 2" << endl;
} else while (true) {
if (n > 1) {
if (d * d > n) {
cout << n << endl;
break;
}
if (n % d == 0) {
n /= d;
cout << d << ' ';
continue;
} else d += 1;
}
}
} | # 0608, 2024-09-28 13:19:20, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main() {
int n; cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else while (true) {
if (n > 1) {
if (d * d > n) {
cout << n << endl;
break;
}
if (n % d == 0) {
n /= d;
cout << d << ' ';
continue;
} else d += 1;
}
}
} | # 0609, 2024-09-28 14:58:47, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
#include<cmath>
using namespace std;
int main() {
long n; cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for number less than 2." << endl;
} else while (true) {
if (n > 1) {
if (d * d > n) {
cout << n << endl;
break;
}
if (n % d == 0) {
n /= d;
cout << d << ' ';
continue;
}
d += 1;
}
}
} | # 0610, 2024-09-28 15:15:49, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
#include<cmath>
using namespace std;
int main() {
long n; cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for number less than 2." << endl;
} else while (true) {
if (n > 1) {
if (d * d > n) {
cout << n << endl;
break;
}
if (n % d == 0) {
n /= d;
cout << d << ' ';
continue;
} else d++;
}
}
} | # 0611, 2024-09-28 15:17:03, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
#include<cmath>
using namespace std;
int main() {
long n = 0; cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for number less than 2." << endl;
} else while (true) {
if (n > 1) {
if (d * d > n) {
cout << n << endl;
break;
}
if (n % d == 0) {
n /= d;
cout << d << ' ';
continue;
} else d++;
}
}
} | # 0612, 2024-09-28 15:19:02, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
#include<cmath>
using namespace std;
int main() {
long n = 0; cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else while (true) {
if (n > 1) {
if (d * d > n) {
cout << n << endl;
break;
}
if (n % d == 0) {
n /= d;
cout << d << ' ';
continue;
} else d++;
}
}
} |
# 0613, 2024-09-28 12:29:05, PP-PP-P-P-PP-PPPPP (72%)
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ll n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
for(ll i = 2; i < sqrt(n); i++){
while(n % i == 0){
cout << i << " ";
n /= i;
}
}
cout << n;
return 0;
} | # 0614, 2024-09-28 12:30:05, PP-PP-P-P-PP-PPPPP (72%)
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ll n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
for(ll i = 2; i <= sqrt(n); i++){
while(n % i == 0){
cout << i << " ";
n /= i;
}
}
cout << n;
return 0;
} | # 0615, 2024-09-28 12:30:39, P----------T----PP (16%)
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ll n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
for(ll i = 2; i <= n && n != 0; i++){
while(n % i == 0){
cout << i << " ";
n /= i;
}
}
cout << n;
return 0;
} | # 0616, 2024-09-28 12:30:49, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ll n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
for(ll i = 2; i <= n && n != 0; i++){
while(n % i == 0){
cout << i << " ";
n /= i;
}
}
//cout << n;
return 0;
} | # 0617, 2024-09-28 12:31:17, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ll n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
for(ll i = 2; i <= n && n != 0 && n != 1; i++){
while(n % i == 0){
cout << i << " ";
n /= i;
}
}
//cout << n;
return 0;
} | # 0618, 2024-09-28 13:20:08, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ios_base::sync_with_stdio(false);
ll n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
for(ll i = 2; i <= n && n != 0 && n != 1; i++){
while(n % i == 0){
cout << i << " ";
n /= i;
}
}
//cout << n;
return 0;
} | # 0619, 2024-09-28 13:20:36, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ios_base::sync_with_stdio(false);
ll n;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
for(ll i = 2; i <= n && n > 1; i++){
while(n % i == 0){
cout << i << " ";
n /= i;
}
}
//cout << n;
return 0;
} |
# 0620, 2024-09-28 09:24:42, PP---------T----PP (22%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(true){
if(n > 1){
if(d * d > n){
cout << d ;
return 0;
}
else{
while(true){
if(n % d == 0){
n /= d;
cout << d << " ";
continue;
}
else{
d += 1;
break;
}
}
}
}
else{
cout << d;
return 0;
}
}
}
} | # 0621, 2024-09-28 10:12:08, PPP--P-P-P-TP---PP (50%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(true){
if(n > 1){
if(d * d > n){
cout << d ;
return 0;
}
else{
while(n % d ==0){
n /= d;
cout << d << " ";
continue;
}
if(n % d != 0){
d += 1;
continue;
}
}
}
else{
return 0;
}
}
}
} | # 0622, 2024-09-28 10:18:29, PPP--P-P-P-TP---PP (50%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d * d > n){
cout << d << " ";
break;
}
else{
while(n % d == 0){
n /= d;
cout << d << " ";
}
if(n % d != 0){
d += 1;
}
}
}
if(n <= 1){
return 0;
}
}
} | # 0623, 2024-09-28 10:21:07, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d * d > n){
cout << n << " ";
break;
}
else{
while(n % d == 0){
n /= d;
cout << d << " ";
}
if(n % d != 0){
d += 1;
}
}
}
if(n <= 1){
return 0;
}
}
} | # 0624, 2024-09-28 11:22:44, PPP--P-P-P--P---PP (50%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(true){
if(n > 1){
if(d * d > n){
cout << d ;
return 0;
}
else{
while(n % d ==0){
n /= d;
cout << d << " ";
continue;
}
if(n % d != 0){
d += 1;
continue;
}
}
}
else{
return 0;
}
}
}
} | # 0625, 2024-09-28 11:23:07, PPP--P-P-P-TP---PP (50%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(true){
if(n > 1){
if(d * d > n){
cout << d ;
return 0;
}
else{
while(n % d ==0){
n /= d;
cout << d << " ";
continue;
}
if(n % d != 0){
d += 1;
continue;
}
}
}
else{
return 0;
}
}
}
} | # 0626, 2024-09-28 11:23:47, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d * d > n){
cout << n << " ";
break;
}
else{
while(n % d == 0){
n /= d;
cout << d << " ";
}
if(n % d != 0){
d += 1;
}
}
}
if(n <= 1){
return 0;
}
}
} |
# 0627, 2024-09-28 09:28:14, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long int ui;
cin >> ui;
//cout << ui;
int d = 2;
if(ui < 2){cout << "No prime factors for numbers less than 2.";}
else{
while(ui>1){
if(d*d>ui){
cout << ui;
break;}
else{
if(ui%d==0){
ui/=d;
cout << d << " ";
} else{d++;}
}
}
}
} | # 0628, 2024-09-28 09:33:17, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long int ui;
cin >> ui;
//cout << ui;
int d = 2;
if(ui < 2){cout << "No prime factors for numbers less than 2.";}
else{
while(ui>1){
if(d*d>ui){
cout << ui;
break;}
else{
if(ui%d==0){
ui/=d;
cout << d << " ";
} else{d++;}
}
}
}
} | # 0629, 2024-09-28 09:40:15, PPPTTTTTTPTTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
long long int ui;
cin >> ui;
//cout << ui;
int d = 2;
if(ui < 2){cout << "No prime factors for numbers less than 2.";}
else{
while(ui>1){
if(d*d>ui){
cout << ui;
break;}
else{
if(ui%d==0){
ui/=d;
cout << d << " ";
} else{
if(d!=2){d+=2;}
}
}
}
}
} | # 0630, 2024-09-28 09:41:08, Compilation error (0%)
#include <iostream>
using namespace std;
int main() {
long long int ui;
cin >> ui;
//cout << ui;
int d = 2;
if(ui < 2){cout << "No prime factors for numbers less than 2.";}
else{
while(ui>1){
if(d*d>ui){
cout << ui;
break;}
else{
if(ui%d==0){
ui/=d;
cout << d << " ";
} else{
if(d==2){d++;}
else{d+=2};
}
}
}
}
} | # 0631, 2024-09-28 09:41:49, Compilation error (0%)
#include <iostream>
using namespace std;
int main() {
long long int ui;
cin >> ui;
//cout << ui;
int d = 2;
if(ui < 2){cout << "No prime factors for numbers less than 2.";}
else{
while(ui>1){
if(d*d>ui){
cout << ui;
break;}
else{
if(ui%d==0){
ui/=d;
cout << d << " ";
} else{d++;}
}
}
}
}
} | # 0632, 2024-09-28 11:46:19, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long int ui;
cin >> ui;
//cout << ui;
int d = 2;
if(ui < 2){cout << "No prime factors for numbers less than 2.";}
else{
while(ui>1){
if(d*d>ui){
cout << ui;
break;}
else{
if(ui%d==0){
ui/=d;
cout << d << " ";
} else{d++;}
}
}
}
} |
# 0633, 2024-09-28 12:34:15, -TPTTTTTTPTTTTTT-- (11%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
}
else {
while (true){
if (N > 1) {
if (d * d > N) {
cout << N << " ";
}
else {
while(N % d == 0) {
N /= d;
cout << d << " ";
}
}
}
else {
break;
}
}
}
} | # 0634, 2024-09-28 12:40:14, -TPTTPTPTPxTPxxx-- (27%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
}
else {
while (N > 1){
if (d * d > N) {
cout << N << " ";
}
else {
while(true) {
if (N % d == 0){
N /= d;
cout << d << " ";
}
else {
d += 1;
break;
}
}
}
}
}
} | # 0635, 2024-09-28 12:43:18, -TPTTPTPTPxTPxxx-- (27%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
}
else {
while (true){
if (N > 1) {
if (d * d > N) {
cout << N << " ";
}
else {
while(true) {
if (N % d == 0){
N /= d;
cout << d << " ";
}
else {
d += 1;
break;
}
}
}
}
else {
break;
}
}
}
} | # 0636, 2024-09-28 12:47:14, -TPTTPTPTPxTPxxx-- (27%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
}
else {
while (true){
if (N > 1) {
if (d * d > N) {
cout << N << " ";
}
else {
while(true) {
if (N % d == 0){
N /= d;
cout << d << " ";
}
else {
d += 1;
break;
}
}
}
}
else {
break;
}
}
}
} | # 0637, 2024-09-28 13:19:10, PTPTTPTPTPxTPxxxPP (44%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (true){
if (N > 1) {
if (d * d > N) {
cout << N << " ";
}
else {
while(true) {
if (N % d == 0){
N /= d;
cout << d << " ";
}
else {
d += 1;
break;
}
}
}
}
else {
break;
}
}
}
} | # 0638, 2024-09-28 14:02:36, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (true){
if (N > 1) {
if (d * d > N) {
cout << N << " ";
break;
}
else {
while(true) {
if (N % d == 0){
N /= d;
cout << d << " ";
}
else {
d += 1;
break;
}
}
}
}
else {
break;
}
}
}
} |
# 0639, 2024-09-28 09:29:00, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d=2;
if(n>=2){
while (n>1){
if(d*d>n){
cout << n << " ";
break;
}
else{
while (n %d ==0){
n /=d;
cout << d << " ";
}
d++;
}
}
}
else{
cout << "No prime factors for numbers less than 2";
}
} | # 0640, 2024-09-28 09:33:46, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d=2;
if(n>=2){
while (n>1){
if(d*d>n){
cout << n << " ";
break;
}
else{
while (n %d ==0){
n /=d;
cout << d << " ";
}
d++;
}
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0641, 2024-09-28 09:34:22, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n>=2){
while (n>1){
if(d*d>n){
cout << n << " ";
break;
}
else{
while (n %d ==0){
n /=d;
cout << d << " ";
}
d++;
}
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0642, 2024-09-28 09:34:42, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d=2;
if(n>=2){
while (n>1){
if(d*d>n){
cout << n << " ";
break;
}
else{
while (n %d ==0){
n /=d;
cout << d << " ";
}
d++;
}
}
}
else{
cout << "No prime factors for numbers less than 2";
}
} | # 0643, 2024-09-28 09:36:23, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d=2;
if(n>=2){
while (n>1){
if(d*d>n){
cout << n << " ";
break;
}
else{
while (n %d ==0){
n /=d;
cout << d << " ";
}
d++;
}
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0644, 2024-09-28 10:52:13, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d=2;
if(n>=2){
while (n>1){
if(d*d>n){
cout << n << " ";
break;
}
else{
while (n %d ==0){
n /=d;
cout << d << " ";
}
d++;
}
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
} |
# 0645, 2024-09-28 12:46:11, -TT--T---T-T------ (0%)
#include <iostream>
#include <cmath>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
while (N >= 2) {
if (N < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (N > 1) {
for (int i = 2; i*i < N; ++i) {
if (N % d == 0) {
N /= d;
}
else {
d += 1;
}
}
if (N <= 1) {
for (int i = 2; i*i < N; ++i) {
cout << i << " ";
}
}
}
}
} | # 0646, 2024-09-28 12:47:51, Compilation error (0%)
#include <iostream>
#include <cmath>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
cout << "No prime factors for numbers less." << endl
} | # 0647, 2024-09-28 12:48:23, ------------------ (0%)
#include <iostream>
#include <cmath>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
cout << "No prime factors for numbers less." << endl;
} | # 0648, 2024-09-28 12:52:28, ------------------ (0%)
#include <iostream>
#include <cmath>
using namespace std;
int main () {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2" << endl;
}
} | # 0649, 2024-09-28 14:00:26, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
using namespace std;
int main () {
long long n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
while (n > 1) {
if (d*d > n) {
cout << n;
break;
}
else if (n <= 1) {
break;
}
else {
if (n % d == 0) {
n /= d;
cout << d << " ";
}
else {
d += 1;
}
}
}
}
} | # 0650, 2024-09-28 14:03:24, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
using namespace std;
int main () {
long long n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
else {
while (n > 1) {
if (d*d > n) {
cout << n;
break;
}
else if (n <= 1) {
break;
}
else {
if (n % d == 0) {
n /= d;
cout << d << " ";
}
else {
d += 1;
}
}
}
}
} |
# 0651, 2024-09-28 12:34:38, -----------T------ (0%)
#include<iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n<2) {
cout << "No prime factors for numbers less than 2" <<endl;
} else {
while(n>1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
if (n%d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
cout << n << " ";
}
} | # 0652, 2024-09-28 12:35:10, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n<2) {
cout << "No prime factors for numbers less than 2" <<endl;
} else {
while(n>1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
if (n%d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
// cout << n << " ";
}
} | # 0653, 2024-09-28 13:18:20, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n<2) {
cout << "No prime factors for numbers less than 2." <<endl;
} else {
while(n>1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
if (n%d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
}
}
// cout << n << " ";
}
} | # 0654, 2024-09-28 13:18:48, PP-P--P----T----PP (33%)
#include<iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n<2) {
cout << "No prime factors for numbers less than 2." <<endl;
} else {
while(n>1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
if (n%d == 0) {
n /= d;
cout << d << " ";
break;
} else {
d += 1;
}
}
}
// cout << n << " ";
}
} | # 0655, 2024-09-28 13:18:59, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int d = 2;
if (n<2) {
cout << "No prime factors for numbers less than 2." <<endl;
} else {
while(n>1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
if (n%d == 0) {
n /= d;
cout << d << " ";
// break;
} else {
d += 1;
}
}
}
// cout << n << " ";
}
} |
# 0656, 2024-09-28 13:09:49, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
bool b=1;
long long N;
cin>>N;
int d=2,t;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else{
while(b==1){
if(N>1){
if(d*d > N){
for(int i=2; i<=N; i++){
if(i%2==0 && i!=2){
continue;
}
while(N%i==0){
N/=i;
cout<<i<<" ";
}
}
return 0;
}
else{
while(N%d==0){
N/=d;
t=d;
for(int i=2; i<=t; i++){
if(i%2==0 && i!=2){
continue;
}
while(t%i==0){
t/=i;
cout<<i<<" ";
}
}
}
d+=1;
b=1;
continue;
}
}
else{
return 0;
}
}
}
} | # 0657, 2024-09-28 13:10:02, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
bool b=1;
long long N;
cin>>N;
int d=2,t;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else{
while(b==1){
if(N>1){
if(d*d > N){
for(int i=2; i<=N; i++){
if(i%2==0 && i!=2){
continue;
}
while(N%i==0){
N/=i;
cout<<i<<" ";
}
}
return 0;
}
else{
while(N%d==0){
N/=d;
t=d;
for(int i=2; i<=t; i++){
if(i%2==0 && i!=2){
continue;
}
while(t%i==0){
t/=i;
cout<<i<<" ";
}
}
}
d+=1;
b=1;
continue;
}
}
else{
return 0;
}
}
}
} | # 0658, 2024-09-28 13:10:10, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
bool b=1;
long long N;
cin>>N;
int d=2,t;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else{
while(b==1){
if(N>1){
if(d*d > N){
for(int i=2; i<=N; i++){
if(i%2==0 && i!=2){
continue;
}
while(N%i==0){
N/=i;
cout<<i<<" ";
}
}
return 0;
}
else{
while(N%d==0){
N/=d;
t=d;
for(int i=2; i<=t; i++){
if(i%2==0 && i!=2){
continue;
}
while(t%i==0){
t/=i;
cout<<i<<" ";
}
}
}
d+=1;
b=1;
continue;
}
}
else{
return 0;
}
}
}
} | # 0659, 2024-09-28 13:31:16, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
bool b=1;
long long N;
cin>>N;
int d=2,t;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else{
while(b==1){
if(N>1){
if(d*d > N){
for(int i=2; i<=N; i++){
if(i%2==0 && i!=2){
continue;
}
while(N%i==0){
N/=i;
cout<<i<<" ";
}
}
return 0;
}
else{
while(N%d==0){
N/=d;
t=d;
for(int i=2; i<=t; i++){
if(i%2==0 && i!=2){
continue;
}
while(t%i==0){
t/=i;
cout<<i<<" ";
}
}
}
d+=1;
b=1;
continue;
}
}
else{
return 0;
}
}
}
} | # 0660, 2024-09-28 14:47:21, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
bool b=1;
long long N;
cin>>N;
int d=2,t;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else{
while(b==1){
if(N>1){
if(d*d > N){
for(int i=2; i<=N; i++){
if(i%2==0 && i!=2){
continue;
}
while(N%i==0){
N/=i;
cout<<i<<" ";
}
}
return 0;
}
else{
while(N%d==0){
N/=d;
t=d;
for(int i=2; i<=t; i++){
if(i%2==0 && i!=2){
continue;
}
while(t%i==0){
t/=i;
cout<<i<<" ";
}
}
}
d+=1;
b=1;
continue;
}
}
else{
return 0;
}
}
}
} |
# 0661, 2024-09-28 12:34:00, -TPTTPTPTPTTTTTTTT (22%)
#include <iostream>
using namespace std;
int main() {
unsigned int n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for number less than 2." << endl;
} else {
while (n > 1) {
if (d*d > n) {
cout << n << endl;
}
else {
while (n%d == 0) {
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 0662, 2024-09-28 12:36:46, -TPTTPTPTPTTTTTT-- (22%)
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for number less than 2." << endl;
} else {
while (n > 1) {
if (d*d > n) {
cout << n << endl;
}
else {
while (n%d == 0) {
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 0663, 2024-09-28 12:37:12, -TPTTPTPTPTTPTTT-- (27%)
#include <iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for number less than 2." << endl;
} else {
while (n > 1) {
if (d*d > n) {
cout << n << endl;
}
else {
while (n%d == 0) {
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 0664, 2024-09-28 12:37:40, -TPTTPTPTPTTPTTTTT (27%)
#include <iostream>
using namespace std;
int main() {
unsigned long long int n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for number less than 2." << endl;
} else {
while (n > 1) {
if (d*d > n) {
cout << n << endl;
}
else {
while (n%d == 0) {
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 0665, 2024-09-28 14:42:28, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
int d = 2;
if (n < 2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
while (n > 1) {
if ((d*d) > n) {
cout << n << endl;
break;
}
else {
while (n%d == 0) {
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} |
# 0666, 2024-09-28 09:13:24, PT-TTTTTTTTTTTTTPP (16%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N;cin >> N;
int d =2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
for(int i = 2;i<N;i++){
while(N % i == 0){
cout << i << ' ';
N /= i;
}
}
}
else if(N % d == 0){
while(N % d == 0){
N /= d;
for(int i = 2;i<N;i++){
while(d % i == 0){
cout << i << ' ';
d /= i;
}
}
}
}
else{
d += 1;
}
}
}
} | # 0667, 2024-09-28 09:33:56, PT-TTTTTTTTTTTTTPP (16%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N;cin >> N;
int d =2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d >N ){
for(int i = 2;i<N;i++){
while(N % i == 0){
cout << i << ' ';
N /= i;
}
}
}
else if(N % d == 0){
while(N % d == 0){
N /= d;
for(int i = 2;i<N;i++){
while(d % i == 0){
cout << i << ' ';
d /= i;
}
}
}
}
else{
d += 1;
}
}
}
} | # 0668, 2024-09-28 10:36:10, P----------T----PP (16%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N;cin >> N;
int d =2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d > N){
for(int i = 2;i<N;i++){
while(N % i == 0){
cout << i << ' ';
N /= i;
}
}
break;
}
else if(N % d == 0){
while(N % d == 0){
N /= d;
for(int i = 2;i<d;i++){
if(d % i == 0){
cout << i << ' ';
}
}
}
}
else{
d += 1;
}
}
}
} | # 0669, 2024-09-28 10:47:31, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N;cin >> N;
int d =2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d > N){
for(int i = 2;i <= N;i++){
while(N % i == 0){
cout << i << ' ';
N /= i;
}
}
}
else if(N % d == 0){
while(N % d == 0){
N /= d;
for(int i = 2;i <= d;i++){
if(d % i == 0){
cout << i << ' ';
}
}
}
}
else{
d += 1;
}
}
}
} | # 0670, 2024-09-28 11:58:17, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N;cin >> N;
int d =2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d > N){
for(int i = 2;i <= N;i++){
while(N % i == 0){
cout << i << ' ';
N /= i;
}
}
}
else if(N % d == 0){
while(N % d == 0){
N /= d;
for(int i = 2;i <= d;i++){
if(d % i == 0){
cout << i << ' ';
}
}
}
}
else{
d += 1;
}
}
}
} |
# 0671, 2024-09-28 09:16:22, P-PPPPPPPPTTTTTTPP (61%)
#include <iostream>
using namespace std;
int main()
{
int n, d = 2;
cin >> n;
if (n > 2)
{
while (n > 1)
{
if (d*d > n)
{
cout << n;
break;
}
else
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d++;
}
}
}
else
{
cout << "No prime factors for numbers less than 2.";
}
} | # 0672, 2024-09-28 09:18:04, P-PPPPPPPPPPPPPPPP (94%)
#include <iostream>
using namespace std;
int main()
{
long long n, d = 2;
cin >> n;
if (n > 2)
{
while (n > 1)
{
if (d*d > n)
{
cout << n;
break;
}
else
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d++;
}
}
}
else
{
cout << "No prime factors for numbers less than 2.";
}
} | # 0673, 2024-09-28 09:18:30, P-PPPPPPPPPPPPPPPP (94%)
#include <iostream>
using namespace std;
int main()
{
long long n = 0, d = 2;
cin >> n;
if (n > 2)
{
while (n > 1)
{
if (d*d > n)
{
cout << n;
break;
}
else
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d++;
}
}
}
else
{
cout << "No prime factors for numbers less than 2.";
}
} | # 0674, 2024-09-28 09:33:15, P-PPPPPPPPPPPPPPPP (94%)
#include <iostream>
using namespace std;
int main()
{
long long n = 0, d = 2;
cin >> n;
if (n > 2)
{
while (n > 1)
{
if (d*d > n)
{
cout << n;
break;
}
else
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d++;
}
}
}
else
{
cout << "No prime factors for numbers less than 2.";
}
} | # 0675, 2024-09-28 11:01:09, P-PPPPPPPPPPPPPPPP (94%)
#include <iostream>
using namespace std;
int main()
{
long long n = 0, d = 2;
cin >> n;
if (n > 2)
{
while (n > 1)
{
if (d*d > n)
{
cout << n;
break;
}
else
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
d++;
}
}
}
else
{
cout << "No prime factors for numbers less than 2.";
}
} |
# 0676, 2024-09-28 09:18:30, --P------P-------- (11%)
#include<iostream>
using namespace std;
int main(){
long long int n , d = 2;
cin>>n;
if (n<2)
{
cout<<"No prime factors for numbers less than 2";
}
else{
if (n<1)
{
return 0;
}
else{
if (d*d > n)
{
while (n != 1)
{
if (n % d == 0)
{
cout<<d<<" ";
n = n/d;
}
else{
n++;
}
}
cout<< d;
return 0;
}
else{
while (n%d==0)
{
n/=d;
cout<<d<<" ";
}
while (n%d != 0)
{
d+=1;
}
}
}
}
} | # 0677, 2024-09-28 09:32:10, --P------P-------- (11%)
#include<iostream>
using namespace std;
int main(){
long long int n , d = 2;
cin>>n;
if (n<2)
{
cout<<"No prime factors for numbers less than 2";
}
else{
if (n<1)
{
return 0;
}
else{
if (d*d > n)
{
while (n != 1)
{
if (n % d == 0)
{
cout<<d<<" ";
n = n/d;
}
else{
n++;
}
}
cout<< d;
return 0;
}
else{
while (n%d==0)
{
n/=d;
cout<<d<<" ";
}
while (n%d != 0)
{
d+=1;
}
}
}
}
} | # 0678, 2024-09-28 09:41:07, P-P------P------PP (27%)
#include<iostream>
using namespace std;
int main(){
long long int n , d = 2;
cin>>n;
if (n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else{
if (n<1)
{
return 0;
}
else{
if (d*d > n)
{
while (n != 1)
{
if (n % d == 0)
{
cout<<d<<" ";
n = n/d;
}
else{
n++;
}
}
cout<< d;
return 0;
}
else{
while (n%d==0)
{
n/=d;
cout<<d<<" ";
}
while (n%d != 0)
{
d+=1;
}
}
}
}
} | # 0679, 2024-09-28 11:12:35, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long long int n , d = 2;
cin>>n;
if (n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
if (n<1)
{
return 0;
}
if (n > 1)
{
if (d*d > n)
{
while (n != 1)
{
if (n % d == 0)
{
cout<<d<<" ";
n = n/d;
}
else if (n %d != 0)
{
d++;
}
}
}
else{
while (n != 1)
{
if (n % d == 0)
{
cout<<d<<" ";
n = n/d;
}
else if (n %d != 0)
{
d++;
}
}
}
}
} | # 0680, 2024-09-28 11:13:04, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main(){
long long int n , d = 2;
cin>>n;
if (n<2)
{
cout<<"No prime factors for numbers less than 2";
}
if (n<1)
{
return 0;
}
if (n > 1)
{
if (d*d > n)
{
while (n != 1)
{
if (n % d == 0)
{
cout<<d<<" ";
n = n/d;
}
else if (n %d != 0)
{
d++;
}
}
}
else{
while (n != 1)
{
if (n % d == 0)
{
cout<<d<<" ";
n = n/d;
}
else if (n %d != 0)
{
d++;
}
}
}
}
} |
# 0681, 2024-09-28 12:24:16, PTTTTTTTTTxTTxxxPP (16%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d = 2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n > 1){
if(d*d>n){
cout<<d<<" ";
}else{
if(n%d==0){
n /=d;
cout<<d<<" ";
}else{
d+=1;
}
}
}
}
} | # 0682, 2024-09-28 12:26:42, PTPTTPTPTPxTPxxxPP (44%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d = 2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n > 1){
if(d*d>n){
cout<<d<<" ";
}else{
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
} | # 0683, 2024-09-28 12:28:15, PTPTTPTPTPxTPxxxPP (44%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d = 2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n > 1){
if(d*d>n){
cout<<n<<" ";
}else{
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
}
} | # 0684, 2024-09-28 13:17:12, PTPTTPTPTPTTPTTTPP (44%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d = 2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n > 1){
if(d*d>n){
int k = n;
int i =2;
while(k!=1){
if(k%i==0){
cout<<i<<" ";
k/=i;
}else{
i++;
}
}
}else{
while(n%d==0){
n/=d;
int o = d;
int j =2;
while(o!=1){
if(o%j==0){
cout<<j<<" ";
o/=j;
}else{
j++;
}
}
}
d+=1;
}
}
}
} | # 0685, 2024-09-28 13:26:59, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d = 2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}else{
while(n > 1){
if(d*d>n){
int k = n;
int i =2;
while(k!=1){
if(k%i==0){
cout<<i<<" ";
k/=i;
}else{
i++;
}
}
break;
}else{
while(n%d==0){
n/=d;
int o = d;
int j =2;
while(o!=1){
if(o%j==0){
cout<<j<<" ";
o/=j;
}else{
j++;
}
}
}
d+=1;
}
}
}
} |
# 0686, 2024-09-28 12:35:21, PTPTTPTPTPxTPxxxPx (38%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
string k;cin >>k;
long long n = stoll(k);
if(k.length()<=19){
int d = 2;
if(n<2){
cout <<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
cout << n <<" ";
}else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d+=1;
}
}
}
}
} | # 0687, 2024-09-28 12:37:38, PTPTTPTPTPxxPxxxPx (38%)
#include<iostream>
using namespace std;
int main(){
string k;cin >>k;
long long n = stoll(k);
if(k.length()<=19){
long long d = 2;
if(n<2){
cout <<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
cout << n <<" ";
}else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d++;
}
}
}
}
} | # 0688, 2024-09-28 12:44:03, PPPPPPPPPPPPPPPPPx (94%)
#include<iostream>
using namespace std;
int main(){
string k;cin >>k;
long long n = stoll(k);
if(k.length()<=19){
long long d = 2;
if(n<2){
cout <<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
cout << n <<" ";
break;
}else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d++;
}
}
}
}
} | # 0689, 2024-09-28 13:38:43, PPPPPPPPPPPPPPPPPx (94%)
#include<iostream>
using namespace std;
int main(){
string k;cin >>k;
long long n = stoll(k);
if(k.length()<=19){
long long d = 2;
if(n<2){
cout <<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
cout << n <<" ";
break;
}else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d++;
}
}
}
}
} | # 0690, 2024-09-28 13:42:34, PPPPPPPPPPPPPPPPPx (94%)
#include<iostream>
using namespace std;
int main(){
string k;cin >>k;
long long n = stoll(k);
if(k.length()<=19){
long long d = 2;
if(n<2){
cout <<"No prime factors for numbers less than 2.";
}else{
while(n>1){
if(d*d>n){
cout << n <<" ";
break;
}else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d++;
}
}
}
}else return 0;
return 0;
} |
# 0691, 2024-09-28 12:36:00, PPPPPPPPPPTTTTTTPP (66%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
else{
if(n%d==0){
while(n%d==0){
n/=d;
cout<<d<<" ";
}
}
else{
d+=1;
}
}
}
}
} | # 0692, 2024-09-28 12:36:32, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
else{
if(n%d==0){
while(n%d==0){
n/=d;
cout<<d<<" ";
}
}
else{
d+=1;
}
}
}
}
} | # 0693, 2024-09-28 12:38:28, P-PPPPPPPPPTPPPPPP (88%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n/2>1){
if(d*d>n){
cout<<n<<" ";
break;
}
else{
if(n%d==0){
while(n%d==0){
n/=d;
cout<<d<<" ";
}
}
else{
d+=1;
}
}
}
}
} | # 0694, 2024-09-28 12:38:51, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
else{
if(n%d==0){
while(n%d==0){
n/=d;
cout<<d<<" ";
}
}
else{
d+=1;
}
}
}
}
} | # 0695, 2024-09-28 14:55:38, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
else{
if(n%d==0){
while(n%d==0){
n/=d;
cout<<d<<" ";
}
}
else{
d+=1;
}
}
}
}
} |
# 0696, 2024-09-28 10:16:02, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main(){
int N;
int d = 2;
cin >> N;
if(N<2){
cout << "No prime factors for numbers less than 2";
return 0;
}else{
while(true){
if(N>1){
// cout << "N>1";
if(d*d>N){
cout << N << " ";
break;
}else{
if(N%d==0){
N /= d;
cout << d << " ";
}else{
d+=1;
}
}
}else{
break;
}
}
}
} | # 0697, 2024-09-28 10:17:38, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N<2){
cout << "No prime factors for numbers less than 2";
return 0;
}else{
while(true){
if(N>1){
// cout << "N>1";
if(d*d>N){
cout << N << " ";
break;
}else{
if(N%d==0){
N /= d;
cout << d << " ";
}else{
d+=1;
}
}
}else{
break;
}
}
}
} | # 0698, 2024-09-28 10:21:30, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N<2){
cout << "No prime factors for numbers less than 2";
return 0;
}else{
while(true){
if(N>1){
// cout << "N>1";
if(d*d>N){
cout << N << " ";
break;
}else{
while(true){
if(N%d==0){
N /= d;
cout << d << " ";
}else{
d+=1;
break;
}
}
}
}else{
break;
}
}
}
} | # 0699, 2024-09-28 10:22:03, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N<2){
cout << "No prime factors for numbers less than 2.";
return 0;
}else{
while(true){
if(N>1){
// cout << "N>1";
if(d*d>N){
cout << N << " ";
break;
}else{
while(true){
if(N%d==0){
N /= d;
cout << d << " ";
}else{
d+=1;
break;
}
}
}
}else{
break;
}
}
}
} | # 0700, 2024-09-28 10:22:38, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long long N;
int d = 2;
cin >> N;
if(N<2){
cout << "No prime factors for numbers less than 2.";
return 0;
}else{
while(true){
if(N>1){
// cout << "N>1";
if(d*d>N){
cout << N << " ";
break;
}else{
if(N%d==0){
N /= d;
cout << d << " ";
}else{
d+=1;
}
}
}else{
break;
}
}
}
} |
# 0701, 2024-09-28 12:33:41, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
void printfactor(long int d) {
int i = 2;
while (d != 1) {
if (d % i == 0) {cout << i << " "; d /= i; i=2;}
else i++;
}
}
int main() {
long int n,d = 2;
cin >> n;
if (n < 2) cout << "No prime factors for numbers less than 2." << endl;
else
while (n > 1) {
if (d*d > n) {printfactor(n); break;}
if (n % d == 0) {n /= d; printfactor(d);}
else d++;
}
} | # 0702, 2024-09-28 12:38:21, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
void printfactor(long int d) {
int i = 2;
while (d != 1) {
if (d % i == 0) {cout << i << " "; d /= i;}
else i++;
}
}
int main() {
long int n,d = 2;
cin >> n;
if (n < 2) cout << "No prime factors for numbers less than 2." << endl;
else
while (n > 1) {
if (d*d > n) {printfactor(n); break;}
if (n % d == 0) {n /= d; printfactor(d);}
else d++;
}
} | # 0703, 2024-09-28 14:13:19, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
void printfactor(long int d) {
int i = 2;
while (d != 1) {
if (d % i == 0) {cout << i << " "; d /= i;}
else i++;
}
}
int main() {
long int n,d = 2;
cin >> n;
if (n < 2) cout << "No prime factors for numbers less than 2." << endl;
else
while (n > 1) {
if (d*d > n) {printfactor(n); break;}
else {
if (n % d == 0) {n /= d; printfactor(d);}
else d++;
}
}
} | # 0704, 2024-09-28 14:58:56, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
void printfactor(long int d) {
int i = 2;
while (d != 1) {
if (d % i == 0) {cout << i << " "; d /= i;}
else i++;
}
}
int main() {
long long int n,d = 2;
cin >> n;
if (n < 2) cout << "No prime factors for numbers less than 2." << endl;
else
while (n > 1) {
if (d*d > n) {printfactor(n); break;}
else {
while (n % d == 0) {n /= d; printfactor(d);}
d++;
}
}
} | # 0705, 2024-09-28 15:19:57, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
void printfactor(long int d) {
long int i = 2;
while (d > 1) {
if (d % i == 0) {cout << i << " "; d /= i;}
else i++;
}
}
int main() {
long long int n,d = 2;
cin >> n;
if (n < 2) cout << "No prime factors for numbers less than 2." << endl;
else
while (n > 1) {
if (d*d > n) {printfactor(n); break;}
while (n % d == 0) {n /= d; printfactor(d);}
d++;
}
} |
# 0706, 2024-09-28 12:31:58, P-PTTPTPTPxTPxxxPP (44%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n; cin >> n;
int d = 2;
if(n<=2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d * d > n){
cout << n << " ";
}
else{
while(n%d==0){
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
return 0;
} | # 0707, 2024-09-28 13:48:53, PTPTTPTPTPxTPxxxPP (44%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n; cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d * d > n){
cout << n << " ";
}
else{
while(n%d==0){
n/=d;
cout << d << " ";
}
d+=1;
}
}
}
return 0;
} | # 0708, 2024-09-28 13:56:53, P-P--P-P-PxTP---PP (44%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n; cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){cout << n << " ";}
while(n%d==0){
n/=d;
cout << d << " ";
}
d+=1;
if(n<=1){break;}
}
}
return 0;
} | # 0709, 2024-09-28 14:03:44, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n; cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){cout << n << " "; break;}
while(n%d==0){n/=d; cout << d << " ";}
d+=1;
}
}
return 0;
} | # 0710, 2024-09-28 14:04:44, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n; cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){cout << n << " "; break;}
while(n%d==0){n/=d; cout << d << " ";}
d+=1;
if(n<=1){break;}
}
}
return 0;
} |
# 0711, 2024-09-28 13:28:44, -PPPPPPPPPTTTTTT-- (50%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for number less than 2." << endl;
}
while (N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else if ( N%d == 0){
N /= d;
cout << d << " ";
}
else { d += 1; }
}
} | # 0712, 2024-09-28 13:29:33, -PPPPPPPPPTTTTTT-- (50%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for number less than 2." << endl;
}
else{
while (N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else if ( N%d == 0){
N /= d;
cout << d << " ";
}
else { d += 1; }
}
}
} | # 0713, 2024-09-28 13:43:31, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int64_t N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for number less than 2." << endl;
}
else {
while (N > 1){
if(d*d > N){
cout << N << " ";
break;
}
if ( N%d == 0 ){
N /= d;
cout << d << " ";
}
else { d += 1; }
}
}
} | # 0714, 2024-09-28 13:44:16, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int64_t N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2." << endl;
}
else {
while (N > 1){
if(d*d > N){
cout << N << " ";
break;
}
if ( N%d == 0 ){
N /= d;
cout << d << " ";
}
else { d += 1; }
}
}
} |
# 0715, 2024-09-28 09:11:22, PP--------------PP (22%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else if(N > 1){
if(d*d > N){
cout << N << " ";
}
else if(N % d == 0){
N /= d;
cout << d << " ";
}
else {
d += 1;
}
}
} | # 0716, 2024-09-28 09:12:10, PP--------------PP (22%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else if(N > 1){
if(d*d > N){
cout << N << " ";
}
else if(N % d == 0){
N /= d;
cout << d << " ";
}
else {
d += 1;
}
}
} | # 0717, 2024-09-28 10:02:09, PP--------------PP (22%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else if(N > 1){
if(d*d > N){
cout << N << " ";
}
else if(N % d == 0){
N /= d;
cout << d << " ";
}
else {
d += 1;
}
}
} | # 0718, 2024-09-28 10:55:25, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
long long d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else if(N > 1){
for(int d=2; d <= N;){
if(N%d == 0){
cout << d << " ";
N/=d;
}else {
d++;
}
}
}
} |
# 0719, 2024-09-28 12:39:42, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
void show(long long num)
{
int i = 2;
while (num > 1)
{
if (num % i == 0)
{
cout << i << " ";
num /= i;
}
else
{
i++;
}
}
}
int main()
{
long long num;
int d = 2;
cin >> num;
if (num < 2)
{
cout << "No prime factor for number less than 2";
}
else
{
while (num > 1)
{
if (d * d > num)
{
show(num);
return 0;
}
else
{
while (num % d == 0)
{
num /= d;
show(d);
}
d++;
}
}
}
return 0;
} | # 0720, 2024-09-28 12:40:25, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
void show(long long num)
{
int i = 2;
while (num > 1)
{
if (num % i == 0)
{
cout << i << " ";
num /= i;
}
else
{
i++;
}
}
}
int main()
{
long long num;
int d = 2;
cin >> num;
if (num < 2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while (num > 1)
{
if (d * d > num)
{
show(num);
return 0;
}
else
{
while (num % d == 0)
{
num /= d;
show(d);
}
d++;
}
}
}
return 0;
} | # 0721, 2024-09-28 12:40:49, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
void show(long long num)
{
int i = 2;
while (num > 1)
{
if (num % i == 0)
{
cout << i << " ";
num /= i;
}
else
{
i++;
}
}
}
int main()
{
long long num;
int d = 2;
cin >> num;
if (num < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (num > 1)
{
if (d * d > num)
{
show(num);
return 0;
}
else
{
while (num % d == 0)
{
num /= d;
show(d);
}
d++;
}
}
}
return 0;
} | # 0722, 2024-09-28 12:41:55, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
void show(long long num)
{
long long i = 2;
while (num > 1)
{
if (num % i == 0)
{
cout << i << " ";
num /= i;
}
else
{
i++;
}
}
}
int main()
{
long long num;
long long d = 2;
cin >> num;
if (num < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while (num > 1)
{
if (d * d > num)
{
show(num);
return 0;
}
else
{
while (num % d == 0)
{
num /= d;
show(d);
}
d++;
}
}
}
return 0;
} |
# 0723, 2024-09-28 12:34:57, PTPxTPTPTPTTTTTTPP (38%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while(N > 1){
if((d*d) > N){
cout << N << " ";
} else {
while( N % d == 0){
N /= d;
cout << d << " ";
}
d+=1;
continue;
}
}
}
} | # 0724, 2024-09-28 12:38:38, PPPPPPPPPPTTTTTTPP (66%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while(N > 1){
if((d*d) > N){
cout << N << " ";
break;
} else {
while( N % d == 0){
N /= d;
cout << d << " ";
}
d+=1;
continue;
}
}
}
} | # 0725, 2024-09-28 12:43:41, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while(N > 1){
if((d*d) > N){
cout << N << " ";
break;
} else {
while( N % d == 0){
N /= d;
cout << d << " ";
}
d+=1;
continue;
}
}
}
} | # 0726, 2024-09-28 13:39:24, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while(N > 1){
if((d*d) > N){
cout << N << " ";
break;
} else {
while( N % d == 0){
N /= d;
cout << d << " ";
}
d+=1;
continue;
}
}
}
} |
# 0727, 2024-09-28 09:18:53, -PPPPPPPPP-PP-PP-- (72%)
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main()
{
unsigned long long n;
cin >> n;
int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2";
}
else if (n > 1)
{
while (n > 1)
{
if (d * d > n)
{
cout << n << " ";
break;
}
else if (n % d == 0)
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
}
else
{
d++;
}
}
}
} | # 0728, 2024-09-28 09:20:31, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main()
{
long long n;
cin >> n;
int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2";
}
else if (n > 1)
{
while (n > 1)
{
if (d * d > n)
{
cout << n << " ";
break;
}
else if (n % d == 0)
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
}
else
{
d++;
}
}
}
} | # 0729, 2024-09-28 09:21:24, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main()
{
long n;
cin >> n;
int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else if (n > 1)
{
while (n > 1)
{
if (d * d > n)
{
cout << n << " ";
break;
}
else if (n % d == 0)
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
}
else
{
d++;
}
}
}
} | # 0730, 2024-09-28 09:32:11, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main()
{
long n;
cin >> n;
int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else if (n > 1)
{
while (n > 1)
{
if (d * d > n)
{
cout << n << " ";
break;
}
else if (n % d == 0)
{
while (n % d == 0)
{
n /= d;
cout << d << " ";
}
}
else
{
d++;
}
}
}
} |
# 0731, 2024-09-28 12:35:11, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d =2;
if(N <2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
if(N>1)
{
while(N >1)
{
if(d*d > N)
{
cout << N;
break;
}
else
{
if(N%d == 0)
{
while(N%d == 0)
{
N/=d;
cout << d << ' '; //
}
}
else
{
d+=1;
}
}
}
}
}
} | # 0732, 2024-09-28 14:17:53, PPPPPPPPPP-PP-PP-- (77%)
#include<iostream>
using namespace std;
int main()
{
unsigned long long N;
cin >> N;
int d =2;
if(N <2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
if(N>1)
{
while(N >1)
{
if(d*d > N)
{
cout << N;
break;
}
else
{
if(N%d == 0)
{
while(N%d == 0)
{
N/=d;
cout << d << ' '; //
}
}
else
{
d+=1;
}
}
}
}
}
} | # 0733, 2024-09-28 14:18:04, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d =2;
if(N <2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
if(N>1)
{
while(N >1)
{
if(d*d > N)
{
cout << N;
break;
}
else
{
if(N%d == 0)
{
while(N%d == 0)
{
N/=d;
cout << d << ' '; //
}
}
else
{
d+=1;
}
}
}
}
}
} | # 0734, 2024-09-28 15:15:32, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d =2;
if(N <2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
if(N>1)
{
while(N >1)
{
if(d*d > N)
{
cout << N;
break;
}
else
{
if(N%d == 0)
{
while(N%d == 0)
{
N/=d;
cout << d << ' '; //
}
}
else
{
d+=1;
}
}
}
}
}
} |
# 0735, 2024-09-28 12:42:29, -TTTTTTTTTxxxxxx-- (0%)
#include <iostream>
using namespace std;
int main(){
int N;
cin>>N;
int d=2;
if (N<2){
cout <<"No prime factors for numbers less than 2";
}
else{
while(N>1){
while(d*d<N){
if(N%d==0){
N/=d;
cout <<d<<" ";
}
else {
d+=1;
cout<<d<<" ";
}
}
}
}
} | # 0736, 2024-09-28 13:20:48, P---------------PP (16%)
#include <iostream>
using namespace std;
int main(){
int N;
cin>>N;
if (N<2){
cout <<"No prime factors for numbers less than 2.";
}
} | # 0737, 2024-09-28 15:17:00, P-PPPPPPPPTTTTTTPP (61%)
#include <iostream>
using namespace std;
int main(){
int N;
cin>>N;
int d=2;
int copy=N;
if(N>2){
while(copy>1){
if(d*d>copy){
cout <<copy;
break;
}
else{
if(copy%d==0){
copy/=d;
cout <<d<<" ";
}
else{
d+=1;
}
}
}
}
else if (N<2){
cout <<"No prime factors for numbers less than 2.";
}
} | # 0738, 2024-09-28 15:19:39, P-PPPPPPPPPPPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin>>N;
long long d=2;
long long copy=N;
if(N>2){
while(copy>1){
if(d*d>copy){
cout <<copy;
break;
}
else{
if(copy%d==0){
copy/=d;
cout <<d<<" ";
}
else{
d+=1;
}
}
}
}
else if (N<2){
cout <<"No prime factors for numbers less than 2.";
}
} |
# 0739, 2024-09-28 12:30:41, Compilation error (0%)
#include <iostream>
#include <cmath>
int main(){
long long N;
cin >> N;
int d = 2;
int component1 = 0;
int component2 = 0;
if(N < 2){
cout << "No prime factors for number less than 2"
return 0;
}
do{
if(N%d == 0){
cout << component1 << component2;
}
else{
d+=1
}
}while(d*d > N)
cout << component1 << component2;
} | # 0740, 2024-09-28 12:50:39, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long N;
cin >> N;
int d = 2;
int component = 0;
if(N < 2){
cout << "No prime factors for number less than 2";
return 0;
}
while(N > 1){
if(d*d > N){
cout << N;
break;
}
else{
if(N % d == 0){
N/=d;
cout << d << " ";
}
else{
d+=1;
}
}
}
} | # 0741, 2024-09-28 13:37:22, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long N;
cin >> N;
int d = 2;
int component = 0;
if(N < 2){
cout << "No prime factors for number less than 2.";
return 0;
}
while(N > 1){
if(d*d > N){
cout << N;
break;
}
else{
if(N % d == 0){
N/=d;
cout << d << " ";
}
else{
d+=1;
}
}
}
} | # 0742, 2024-09-28 13:38:03, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long N;
cin >> N;
int d = 2;
int component = 0;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
while(N > 1){
if(d*d > N){
cout << N;
break;
}
else{
if(N % d == 0){
N/=d;
cout << d << " ";
}
else{
d+=1;
}
}
}
} |
# 0743, 2024-09-28 09:13:32, -TPTTPTPTPxTPxxx-- (27%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(n>1){
if(d*d>n){cout<<n<<' ';}
else{
while(n%d==0){
n/=d;
cout<<d<<' ';
}
if(n%d!=0){d+=1;}
}
}
}
} | # 0744, 2024-09-28 09:15:30, -PPPPPPPPPPTPPPP-- (77%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(n>1){
if(d*d>n){cout<<n<<' '; break;}
else{
while(n%d==0){
n/=d;
cout<<d<<' ';
}
if(n%d!=0){d+=1;}
}
}
}
} | # 0745, 2024-09-28 09:40:40, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){cout<<n<<' '; break;}
else{
while(n%d==0){
n/=d;
cout<<d<<' ';
}
if(n%d!=0){d+=1;}
}
}
}
} | # 0746, 2024-09-28 10:33:39, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){cout<<n<<' '; break;}
else{
while(n%d==0){
n/=d;
cout<<d<<' ';
}
if(n%d!=0){d+=1;}
}
}
}
} |
# 0747, 2024-09-28 10:02:30, P-T-TT-TTTTTTTTTPT (11%)
#include <bits//stdc++.h>
using namespace std;
int main(){
int d = 2;
int N ;
cin >> N ;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
do{if(N>1){
if(d*d<=N){
while(N%d==0){
N/=d;
int i=2;
while(i<=d){
if(d%i==0){
d /= i;
cout << i << " ";
}
}
}
} d+=1;
} for(int div=2;div*div<=N;div++){
if(N%div==0){
N /= div;
cout << div << " ";
}
}
}while(N%d==0);
} | # 0748, 2024-09-28 10:19:53, PPTPTTPTTTTTTTTTPT (27%)
#include <bits//stdc++.h>
using namespace std;
int main(){
int d = 2;
int N ;
cin >> N ;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
do{if(N>1){
if(d*d<=N){
while(N%d==0){
N/=d;
int i=2;
while(i<=d){
if(d%i==0){
d /= i;
cout << i << " ";
}
i++;
}
} d+=1;
}
int f =2 ;
while(f<=N){
if(N%f==0){
N/= f;
cout << f << " ";
}
f++;
}
}
}while(N%d==0);
} | # 0749, 2024-09-28 10:38:39, PTPTTPTPTPTTTTTTP- (33%)
#include <bits//stdc++.h>
using namespace std;
int main(){
int d = 2;
int N ;
cin >> N ;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
while(N>1){
if(d*d<=N){
while(N%d==0){
N/=d;
cout << d << " ";
} d++;
}
}while(N%d==0){
N/=d;
cout << d << " ";
} d++;
} | # 0750, 2024-09-28 10:54:21, PPPPPPPPPPPTPPPPPP (94%)
#include <bits//stdc++.h>
using namespace std;
int main(){
long long int d = 2;
long long int N ;
cin >> N ;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
while(N>1){
if(d*d<=N){
while(N%d==0){
N/=d;
cout << d << " ";
} d++;
} while(N%d==0){
N/=d;
cout << d << " ";
} d++;
}
} |
# 0751, 2024-09-28 12:36:29, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main(){
long long n, d=2;
cin >> n;
if(n < 2){
cout << "No prime factors for number less than 2";
}
else{
while(n > 1){
if(d*d > n){
long long i = 2;
while(n != 1){
while(n % i == 0){
cout << i << ' ';
n /= i;
} i++;
}
}
else{
while(n % d == 0){
n /= d;
cout << d << ' ';
}
d += 1;
}
}
}
return 0;
} | # 0752, 2024-09-28 12:42:31, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main(){
long long n, d=2;
cin >> n;
if(n < 2){
cout << "No prime factors for number less than 2";
}
else{
while(n > 1){
if(d*d > n){
long long i = 2;
while(n != 1){
while(n % i == 0){
cout << i << ' ';
n /= i;
} i++;
}
}
else{
if(n%d == 0){
while(n % d == 0){
n /= d;
cout << d << ' ';
}
}
d++;
}
}
}
return 0;
} | # 0753, 2024-09-28 13:38:32, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main(){
long long n, d=2;
cin >> n;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n > 1){
if(d*d > n){
long long i = 2;
while(n != 1){
while(n % i == 0){
cout << i << ' ';
n /= i;
} i++;
}
}
else{
if(n%d == 0){
while(n % d == 0){
n /= d;
cout << d << ' ';
}
}
d++;
}
}
}
return 0;
} | # 0754, 2024-09-28 13:39:01, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long n, d=2;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
long long i = 2;
while(n != 1){
while(n % i == 0){
cout << i << ' ';
n /= i;
} i++;
}
}
else{
if(n%d == 0){
while(n % d == 0){
n /= d;
cout << d << ' ';
}
}
d++;
}
}
}
return 0;
} |
# 0755, 2024-09-28 10:55:41, -TPTTPTPTPxxPxxx-- (27%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
long long d = 2;
cin >> n;
if (n >= 2) {
while (n > 1) {
if (d*d > n) {
cout << n << " ";
}
else {
while (n % d == 0) {
n = n / d;
cout << d << " ";
}
d += 1;
}
}
}
else cout << "No prime factors for number less than 2.";
} | # 0756, 2024-09-28 11:01:59, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
long long d = 2;
bool b = false;
cin >> n;
if (n >= 2) {
for (long long d = 2; d <= n; d++) {
if (n % d == 0) {
n = n / d;
cout << d << " ";
d--;
}
}
}
else cout << "No prime factors for number less than 2.";
/*if (n >= 2) {
while (n > 1) {
if (d*d > n) {
cout << n << " ";
}
else {
while (n % d == 0) {
n = n / d;
cout << d << " ";
}
d += 1;
}
}
}
else cout << "No prime factors for number less than 2.";*/
} | # 0757, 2024-09-28 11:03:22, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
long long d = 2;
bool b = false;
cin >> n;
if (n >= 2) {
for (long long d = 2; d <= n; d++) {
if (n % d == 0) {
n = n / d;
cout << d << " ";
d--;
}
}
}
else cout << "No prime factors for numbers less than 2.";
/*if (n >= 2) {
while (n > 1) {
if (d*d > n) {
cout << n << " ";
}
else {
while (n % d == 0) {
n = n / d;
cout << d << " ";
}
d += 1;
}
}
}
else cout << "No prime factors for number less than 2.";*/
} | # 0758, 2024-09-28 11:05:16, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
if (n >= 2) {
for (long long d = 2; d <= n; d++) {
if (n % d == 0) {
n = n / d;
cout << d << " ";
d--;
}
}
}
else cout << "No prime factors for numbers less than 2.";
/*if (n >= 2) {
while (n > 1) {
if (d*d > n) {
cout << n << " ";
}
else {
while (n % d == 0) {
n = n / d;
cout << d << " ";
}
d += 1;
}
}
}
else cout << "No prime factors for number less than 2.";*/
} |
# 0759, 2024-09-28 12:35:41, PTPTTTTTTPTTTTTTPP (27%)
#include<iostream>
using namespace std;
int main(){
long int k;
cin >> k;
int d = 2;
if (k < 2)
{
cout << "No prime factors for numbers less than 2.";
} else {
while (k>1)
{
if (d*d>k)
{
cout <<k<<" ";
} else{
while(k%d == 0){
if (k%d == 0)
{
k/=d;
cout <<d<<" ";
} else{
d+=1;
}
}
}
}
}
} | # 0760, 2024-09-28 12:38:47, PTPTTPTPTPxTPxxxPP (44%)
#include<iostream>
using namespace std;
int main(){
long int k;
cin >> k;
int d = 2;
if (k < 2)
{
cout << "No prime factors for numbers less than 2.";
} else {
while (k>1)
{
if (d*d>k)
{
cout <<k<<" ";
} else{
while(k%d == 0){
k/=d;
cout <<d<<" ";
}
d+=1;
}
}
}
} | # 0761, 2024-09-28 12:40:45, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long int k;
cin >> k;
int d = 2;
if (k < 2)
{
cout << "No prime factors for numbers less than 2.";
} else {
while (k>1)
{
if (d*d>k)
{
cout <<k<<" ";
break;
} else{
while(k%d == 0){
k/=d;
cout <<d<<" ";
}
d+=1;
}
}
}
} |
# 0762, 2024-09-28 10:57:03, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
break;
}
else{
if(n%d==0){
n=n/d;
cout<<d<<" ";
}
else d++;
}
}
return 0;
} | # 0763, 2024-09-28 11:57:51, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}
else{
if(n%d==0){
n=n/d;
cout<<d<<" ";
}
else d++;
}
}
} | # 0764, 2024-09-28 11:58:12, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
int d=2;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
while(n>1){
if(d*d>n){
cout<<n;
return 0;
}
else{
if(n%d==0){
n=n/d;
cout<<d<<" ";
}
else d++;
}
}
return 0;
} |
# 0765, 2024-09-28 09:12:48, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std ;
int main(){
long long n ;
cin >> n;
long long d =2 ;
if(n<2){
cout << "No prime factors for numbers less than 2." ;
}else{
while( d <= n){
if(n%d == 0){
cout << d << ' ' ;
n/=d ;
}else{
d++;
}
}
}
} | # 0766, 2024-09-28 09:14:43, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std ;
int main(){
long long n ;
cin >> n;
long long d =2 ;
if(n<2){
cout << "No prime factors for numbers less than 2." ;
}else{
while( d <= n){
if(n%d == 0){
cout << d << ' ' ;
n/=d ;
}else{
d++;
}
}
}
} | # 0767, 2024-09-28 09:32:13, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std ;
int main(){
long long n ;
cin >> n;
long long d =2 ;
if(n<2){
cout << "No prime factors for numbers less than 2." ;
}else{
while( d <= n){
if(n%d == 0){
cout << d << ' ' ;
n/=d ;
}else{
d++;
}
}
}
} |
# 0768, 2024-09-28 09:34:21, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n ;
int d=2;
cin>> n ;
if(n<2){
cout<< "No prime factors for numbers less than 2.";
}
else{
while(n>1) {
if(d*d >n){
cout<< n ;
return 0;
}
else {
while(n%d == 0){
n/=d;
cout<< d << " " ;
}
d+=1 ;
}
}
}
} | # 0769, 2024-09-28 10:02:20, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n ;
int d=2;
cin>> n ;
if(n<2){
cout<< "No prime factors for numbers less than 2.";
}
else{
while(n>1) {
if(d*d >n){
cout<< n ;
return 0;
}
else {
while(n%d == 0){
n/=d;
cout<< d << " " ;
}
d+=1 ;
}
}
}
} | # 0770, 2024-09-28 11:19:55, PPPPPPPPPPPTPPPPPP (94%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n ;
int d=2;
cin>> n ;
if(n<2){
cout<< "No prime factors for numbers less than 2.";
}
else{
while(n>1) {
if(d*d >n){
cout<< n ;
return 0;
}
else {
while(n%d == 0){
n/=d;
cout<< d << " " ;
}
d+=1 ;
}
}
}
} |
# 0771, 2024-09-28 09:14:42, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
int d =2;
if(N < 2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while(N > 1)
{
if(d*d > N)
{
cout << N <<' ';
break;
}
else{
if(N % d == 0)
{
N /= d;
cout << d <<' ';
}
else
{
d += 1;
continue;
}
}
}
}
} | # 0772, 2024-09-28 09:16:57, -PPPPPPPPP-PP-PP-- (72%)
#include <iostream>
using namespace std;
int main()
{
unsigned long long N;
cin >> N;
//cout << N;
int d =2;
if(N < 2)
{
cout << "No prime factors for numbers less than 2";
}
else
{
while(N > 1)
{
if(d*d > N)
{
cout << N <<' ';
break;
}
else{
if(N % d == 0)
{
N /= d;
cout << d <<' ';
}
else
{
d += 1;
continue;
}
}
}
}
} | # 0773, 2024-09-28 09:41:09, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main()
{
long long N;
cin >> N;
//cout << N;
int d =2;
if(N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(N > 1)
{
if(d*d > N)
{
cout << N <<' ';
break;
}
else{
if(N % d == 0)
{
N /= d;
cout << d <<' ';
}
else
{
d += 1;
continue;
}
}
}
}
} |
# 0774, 2024-09-28 09:22:02, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long n;cin>>n;
int d = 2;
bool loop = true ;
if(n<2){
cout<<"No prime factors for numbers less than 2." ;
}
else if(n>1){
while (loop){
if(d*d<=n){
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d+=1;
}
else {
loop = false;
}
}
}
if(n>1){
cout<<n;
}
} | # 0775, 2024-09-28 09:22:14, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long n;cin>>n;
int d = 2;
bool loop = true ;
if(n<2){
cout<<"No prime factors for numbers less than 2." ;
}
else if(n>1){
while (loop){
if(d*d<=n){
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d+=1;
}
else {
loop = false;
}
}
}
if(n>1){
cout<<n;
}
} | # 0776, 2024-09-28 11:01:52, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long n;cin>>n;
int d = 2;
bool loop = true ;
if(n<2){
cout<<"No prime factors for numbers less than 2." ;
}
else if(n>1){
while (loop){
if(d*d<=n){
while(n%d==0){
n/=d;
cout<<d<<' ';
}
d+=1;
}
else {
loop = false;
}
}
}
if(n>1){
cout<<n;
}
} |
# 0777, 2024-09-28 13:25:23, PTPTTPTPTPTTPTTTPP (44%)
#include<bits/stdc++.h>
using namespace std;
//deque <int> q;
void primeey(long long int n){
while(n%2==0){
cout<<2<<" ";
n=n/2;
}
for(int i=3;i<n/2;i+=2){
while(n%i==0){
cout<<i<<" ";
n=n/i;
}
}
if(n!=1){
cout<<n<<" ";
}
}
int main(){
long long int n; cin>>n;
long long int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
primeey(n);
}
else{
while(n%d==0){
n/=d;
primeey(d);
}
if(n%d!=0){
d+=1;
}
}
}
}
return 0;
} | # 0778, 2024-09-28 13:26:37, PTPxTPTPTPTTPTTTPP (44%)
#include<bits/stdc++.h>
using namespace std;
//deque <int> q;
void primeey(long long int n){
while(n%2==0){
cout<<2<<" ";
n=n/2;
}
for(int i=3;i<n/2;i+=2){
while(n%i==0){
cout<<i<<" ";
n=n/i;
}
}
if(n!=1){
cout<<n<<" ";
}
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
long long int n; cin>>n;
long long int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
primeey(n);
}
else{
while(n%d==0){
n/=d;
primeey(d);
}
if(n%d!=0){
d+=1;
}
}
}
}
return 0;
} | # 0779, 2024-09-28 14:26:21, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
//deque <int> q;
void primeey(long long int n){
while(n%2==0){
cout<<2<<" ";
n=n/2;
}
for(int i=3;i<n/2;i+=2){
while(n%i==0){
cout<<i<<" ";
n=n/i;
}
}
if(n>1){
cout<<n<<" ";
}
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
long long int n; cin>>n;
long long int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
primeey(n);
return 0;
}
else{
if(n%d==0){
while(n%d==0){
n/=d;
primeey(d);
}
}
else{
d+=1;
}
}
}
}
return 0;
} |
# 0780, 2024-09-28 09:44:46, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else if(d*d > N){
if(N == 2)cout << 2;
if(N == 3)cout << 3;
}else{
while(N > 1){
if(d*d > N){
cout << N;
break;
}
else if(N%d == 0){
cout << d << " ";
N = N/d;
}else if(N%d != 0){
d++;
}
}
}
} | # 0781, 2024-09-28 09:45:02, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else if(d*d > N){
if(N == 2)cout << 2;
if(N == 3)cout << 3;
}else{
while(N > 1){
if(d*d > N){
cout << N;
break;
}
else if(N%d == 0){
cout << d << " ";
N = N/d;
}else if(N%d != 0){
d++;
}
}
}
} | # 0782, 2024-09-28 10:34:31, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else if(d*d > N){
if(N == 2)cout << 2;
if(N == 3)cout << 3;
}else{
while(N > 1){
if(d*d > N){
cout << N;
break;
}
else if(N%d == 0){
cout << d << " ";
N = N/d;
}else if(N%d != 0){
d++;
}
}
}
} |
# 0783, 2024-09-28 10:15:20, PP--------------PP (22%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int N, d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}else if(N > 1){
if(d*d > N){
for(int d = 2; d <= N; d++){
while(N % d == 0){
N = N/d;
cout << d;
if(N > 1){
cout << " ";
}
return 0;
}
}
}
}else if(N % d == 0){
while(N % d == 0){
N /= d;
for(int d = 2; d <= N; d++){
while(N % d == 0){
N = N/d;
cout << N;
if(N > 1){
cout << " ";
}
return 0;
}
}
}
}else{
while(N % d != 0){
d += 1;
return 0;
}
}
} | # 0784, 2024-09-28 11:05:29, PPPPPPPPPPPPP-PPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int N, d = 2;
cin >> N;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}else if(N > 1){
if(d*d > N){
for(int d = 2; d <= N; d++){
while(N % d == 0){
N = N/d;
cout << d;
if(N > 1){
cout << " ";
}
}
}
}else if(N % d == 0){
for(int d = 2; d <= N; d++){
while(N % d == 0){
N = N/d;
cout << d;
if(N > 1){
cout << " ";
}
}
}
}else if(N % d != 0){
cout << N;
}
}
} |
# 0785, 2024-09-28 12:49:10, PP-PP-P-P-PT-PPPPP (66%)
#include<iostream>
#include<cmath>
int main ( ){
long long n = 0 ;
std::cin >> n ;
int d = 2 ;
if ( n < 2 ) {
std::cout << "No prime factors for numbers less than 2." ;
}else {
if ( n >= 1 ){
while ( n >= 1 ){
if ( d*d > n ){
std::cout << n << " " ;
break;
}else {
bool aa = true ;
while ( aa ){
if ( n%d == 0 ){
n /= d ;
std::cout << d << " " ;
}else {
d += 1 ;
aa = false ;
}
}
}
}
}else
std::cout << n ;
}
} | # 0786, 2024-09-28 12:57:38, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
#include<cmath>
int main ( ){
long long n = 0 ;
std::cin >> n ;
int d = 2 ;
if ( n < 2 ) {
std::cout << "No prime factors for numbers less than 2." ;
}else {
while ( n > 1 ){
if ( d*d > n ){
std::cout << n << " " ;
break;
}else {
bool aa = true ;
while ( aa ){
if ( n%d == 0 ){
n /= d ;
std::cout << d << " " ;
}else {
d += 1 ;
aa = false ;
}
}
}
}
}
} |
# 0787, 2024-09-28 09:10:40, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ll n;
int d = 2;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
cout << n;
return 0;
}
else{
while(n%d == 0){
n /=d;
cout << d << " ";
}
d +=1;
}
}
}
} | # 0788, 2024-09-28 09:11:12, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ll n;
int d = 2;
cin >> n;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d*d > n){
cout << n;
return 0;
}
else{
while(n%d == 0){
n /=d;
cout << d << " ";
}
d +=1;
}
}
}
} |
# 0789, 2024-09-28 09:13:58, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d * d > n){
cout << n << " ";
break;
}
else{
if(n % d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
}
} | # 0790, 2024-09-28 09:33:40, PPPPPPPPPPPTPPPPPP (94%)
#include <iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n > 1){
if(d * d > n){
cout << n << " ";
break;
}
else{
if(n % d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
}
} |
# 0791, 2024-09-28 12:47:50, PPPPPPPPPPPTPPPPPP (94%)
#include <vector>
#include <algorithm>
#include <iostream>
#include <cctype>
#include <cmath>
#include <stdio.h>
using namespace std;
int main()
{
long long n;
cin >> n;
int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2." << endl;
return 0;
}
while (true)
{
if (n > 1)
{
if (d * d > n)
{
// cout smt
//cout << "this is N" <<endl;
cout << n << " ";
break;
}
else
{
while (true)
{
if (n % d == 0)
{
n /= d;
// cout smt
// cout << "this is D" <<endl;
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
break;
}
}
} |
# 0792, 2024-09-28 09:34:06, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >>n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}else{
while(1){
if(n>1){
if(d*d>n){
cout << n << " ";
break;
}else{
while(1){
if(n%d==0){
n/=d;
cout << d <<" ";
continue;
}else{
d+=1;
break;
}
}
}
}else{
break;
}
}
}
} |
# 0793, 2024-09-28 09:16:32, PPPPPPPPPPPTPPPPPP (94%)
#include<iostream>
using namespace std;
int main() {
long long N;
int d =2;
cin >> N;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N>1){
if(d*d>N){
cout << N << ' ';
break;
}else{
while(N%d==0){
N/=d;
cout << d << ' ';
}
if(N%d!=0){d+=1;}
}
}
}
} |
# 0794, 2024-09-28 09:11:25, PPPPPPPPPPPTPPPPPP (94%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
while(n>1){
if(d*d>n){
cout<<n<<" ";
return 0;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
} |
# 0795, 2024-09-28 12:43:28, -PPPPPPPPP-PP-PP-- (72%)
#include <iostream>
using namespace std;
int main() {
unsigned long long n; cin >> n;
int d = 2;
if(n < 2) {
cout << "No prime factors for numbers less than 2";
} else {
do {
if(n > 1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
do {
if(n%d == 0) {
n /= d;
cout << d << " ";
} else {
break;
}
} while(n%d == 0);
if(n%d != 0) d+=1;
}
} else break;
} while(n > 1);
}
} | # 0796, 2024-09-28 12:46:09, -PPPPPPPPP-PP-PP-- (72%)
#include <iostream>
using namespace std;
int main() {
unsigned long long n; cin >> n;
int d = 2;
if(n < 2) {
cout << "No prime factors for numbers less than 2";
} else {
do {
if(n > 1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
do {
if(n%d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
}
} while(n%d == 0);
if(n%d != 0) d+=1;
}
} else break;
} while(n > 1);
}
} | # 0797, 2024-09-28 12:47:40, -PPPPPPPPP-PP-PP-- (72%)
#include <iostream>
using namespace std;
int main() {
unsigned long long n; cin >> n;
int d = 2;
if(n < 2) {
cout << "No prime factors for numbers less than 2";
} else {
do {
if(n > 1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
do {
if(n%d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
break;
}
} while(n%d == 0);
if(n%d != 0) d+=1;
}
} else break;
} while(n > 1);
}
} | # 0798, 2024-09-28 12:49:00, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main() {
unsigned long long n; cin >> n;
unsigned long long d = 2;
if(n < 2) {
cout << "No prime factors for numbers less than 2";
} else {
do {
if(n > 1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
do {
if(n%d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
break;
}
} while(n%d == 0);
if(n%d != 0) d+=1;
}
} else break;
} while(n > 1);
}
} | # 0799, 2024-09-28 13:18:07, PPPPPPPPPPPPPPPP-- (88%)
#include <iostream>
using namespace std;
int main() {
unsigned long long n; cin >> n;
unsigned long long d = 2;
if(n < 2) {
cout << "No prime factors for numbers less than 2.";
} else {
do {
if(n > 1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
do {
if(n%d == 0) {
n /= d;
cout << d << " ";
} else {
d += 1;
break;
}
} while(n%d == 0);
if(n%d != 0) d+=1;
}
} else break;
} while(n > 1);
}
} | # 0800, 2024-09-28 13:19:09, PPPPPPPPPPPPPPPP-- (88%)
#include <iostream>
using namespace std;
int main() {
unsigned long long n; cin >> n;
unsigned long long d = 2;
if(n < 2) {
cout << "No prime factors for numbers less than 2.";
} else {
do {
if(n > 1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
do {
if(n%d == 0) {
n /= d;
cout << d << " ";
} else {
//d += 1;
break;
}
} while(n%d == 0);
if(n%d != 0) d+=1;
}
} else break;
} while(n > 1);
}
} | # 0801, 2024-09-28 15:17:12, PPPPPPPPPPPPPPPP-- (88%)
#include <iostream>
using namespace std;
int main() {
unsigned long long n; cin >> n;
unsigned long long d = 2;
if(n < 2) {
cout << "No prime factors for numbers less than 2.";
} else {
do {
if(n > 1) {
if(d*d > n) {
cout << n << " ";
break;
} else {
do {
if(n%d == 0) {
n /= d;
cout << d << " ";
} else {
//d += 1;
break;
}
} while(n%d == 0);
if(n%d != 0) d+=1;
}
} else break;
} while(n > 1);
}
} |
# 0802, 2024-09-28 09:10:19, P-P--P-P-P--P---PP (44%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
cin >> N;
long long d=2;
if (N>2){
while (N>1){
if(d*d>N){
cout << d;
break;
} else{
if(N%d ==0){
N/=d;
cout << d << " ";
} else{
d++;
}
}
}
} else{
cout << "No prime factors for numbers less than 2.";
}
} | # 0803, 2024-09-28 09:13:58, P-PPPPPPPPPTPPPPPP (88%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
cin >> N;
long long d=2;
if (N>2){
while (N>1){
if(d >=N){
cout << d<<endl;
break;
} else{
if(N%d ==0){
N/=d;
cout << d << " ";
} else{
d++;
}
}
}
} else{
cout << "No prime factors for numbers less than 2.";
}
} |
# 0804, 2024-09-28 13:19:04, PPPPPPPPPP-PP-PP-- (77%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
unsigned long long int n;
int d;
cin >> n;
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
// cout prime n
cout << n << " ";
break;
}
else{
while(n%d==0){
n/=d;
// cout prime d
cout << d << " ";
}
d+=1;
}
}
}
} | # 0805, 2024-09-28 13:20:59, PPPPPPPPPPPPPPPP-- (88%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
unsigned long long int n;
unsigned long long int d;
cin >> n;
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
// cout prime n
cout << n << " ";
break;
}
else{
while(n%d==0){
n/=d;
// cout prime d
cout << d << " ";
}
d+=1;
}
}
}
} |
# 0806, 2024-09-28 09:57:11, ------------------ (0%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
int ans;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n<=1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
}
else{
while( n%d > 0){
if(n%d == 0){
n /= d;
cout << d;
}
}
}
}
}
} | # 0807, 2024-09-28 09:57:33, ------------------ (0%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
int ans;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n<=1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
}
else{
while( n%d > 0){
if(n%d == 0){
n /= d;
cout << d << " ";
}
}
}
}
}
} | # 0808, 2024-09-28 10:02:59, -P-P--P----P------ (22%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>=1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
while(n%d > 0){
if(n%d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
}
else{
break;
}
}
}
} | # 0809, 2024-09-28 10:04:40, -PTTTTTTTTTTTTTT-- (5%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>=1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
}
else{
break;
}
}
}
} | # 0810, 2024-09-28 10:05:17, -PTTTTTTTTTTTTTT-- (5%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>=1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
while(n >= 0){
if(n%d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
}
else{
break;
}
}
}
} | # 0811, 2024-09-28 10:06:48, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>=1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
if(n%d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
else{
break;
}
}
}
} | # 0812, 2024-09-28 10:08:56, -P-P--P----P------ (22%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>=1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
while(n%d > 0){
if(n%d == 0){
n /= d;
cout << d << " ";
}
}
if(n%d > 0){
d+= 1;
}
}
}
else{
break;
}
}
}
} | # 0813, 2024-09-28 10:09:20, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>=1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
if(n%d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
else{
break;
}
}
}
} | # 0814, 2024-09-28 10:10:01, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
if(n%d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
else{
break;
}
}
}
} | # 0815, 2024-09-28 10:11:21, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
if(n%d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
while(n%d > 0){
if(n%d == 0){
n /= d;
cout << d << " ";
}
}
}
}
else{
break;
}
}
}
} | # 0816, 2024-09-28 10:12:40, -PPP--P--P-T------ (27%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
if(n%d == 0){
n /= d;
cout << d << " ";
while(n%d > 0){
n/= d;
cout << d << "";
}
}
else{
d += 1;
}
}
}
else{
break;
}
}
}
} | # 0817, 2024-09-28 10:13:05, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
if(n%d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
else{
break;
}
}
}
} | # 0818, 2024-09-28 10:14:37, -PPPPPPPPPPPPPPP-- (83%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while(n>1){
if(n>1){
if(d*d > n){
cout << n << " ";
break;
}
else{
if(n%d == 0){
n /= d;
cout << d << " ";
}
else{
d += 1;
}
}
}
else{
break;
}
}
}
} |
# 0819, 2024-09-28 13:03:11, Compilation error (0%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n ;
int d = 2 ;
int k = 2 ;
int j = 2 ;
cin >> n ;
if(n < 2) { cout << "No prime factors for numbers less than 2" ; }
else {
while( n > 1 ) {
if(d*d > n){
//show tao prakob n
break;
} else {
while (true)
}
}
}
} | # 0820, 2024-09-28 13:04:35, Compilation error (0%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n ;
int d = 2 ;
int k = 2 ;
int j = 2 ;
cin >> n ;
if(n < 2) { cout << "No prime factors for numbers less than 2" ; }
else {cout << n ; }
}
}
} | # 0821, 2024-09-28 13:04:56, -P-P--P----------- (16%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n ;
int d = 2 ;
int k = 2 ;
int j = 2 ;
cin >> n ;
if(n < 2) { cout << "No prime factors for numbers less than 2" ; }
else {cout << n ; }
} | # 0822, 2024-09-28 13:08:37, -PPPPPPPPPTTTTTTTT (50%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n ;
int d = 2 ;
cin >> n ;
if(n < 2) { cout << "No prime factors for numbers less than 2" ; }
while (n != 1) {
while(n%d != 0) {
d++ ;
}
n /= d ;
cout << d << " " ;
}
} | # 0823, 2024-09-28 13:12:02, -PPPPPPPPPPTPPPPTT (77%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long int n ;
long long int d = 2 ;
cin >> n ;
if(n < 2) { cout << "No prime factors for numbers less than 2" ; }
while (n != 1) {
while(n%d != 0) {
d++ ;
}
n /= d ;
cout << d << " " ;
}
} | # 0824, 2024-09-28 13:37:28, -PPPPPPPPPPTPPPPTT (77%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long int n ;
int d = 2 ;
cin >> n ;
if(n < 2.) { cout << "No prime factors for numbers less than 2" ; }
while (n != 1) {
while(n%d != 0) {
d++ ;
}
n /= d ;
cout << d << " " ;
}
} | # 0825, 2024-09-28 14:24:43, PPPPPPPPPPPTPPPPTT (83%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long int n ;
int d = 2 ;
cin >> n ;
if(n < 2.) { cout << "No prime factors for numbers less than 2." ; }
while (n != 1) {
while(n%d != 0) {
d++ ;
}
n /= d ;
cout << d << " " ;
}
} | # 0826, 2024-09-28 14:28:12, Compilation error (0%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
double n ;
double d = 2 ;
cin >> n ;
if(n < 2.) { cout << "No prime factors for numbers less than 2." ; }
while (n != 1) {
while(n%d != 0) {
d++ ;
}
n /= d ;
cout << d << " " ;
}
} | # 0827, 2024-09-28 14:28:51, PPPPPPPPPPPTPPPPTT (83%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long int n ;
long long int d = 2 ;
cin >> n ;
if(n < 2.) { cout << "No prime factors for numbers less than 2." ; }
while (n != 1) {
while(n%d != 0) {
d++ ;
}
n /= d ;
cout << d << " " ;
}
} |
# 0828, 2024-09-28 09:33:01, -T---------------- (0%)
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int d=2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
} else {
while (N > 1) {
if (d*d > N) {
cout << N;
} else {
while (N%d==0) {
N /= d;
cout << d;
} if (N%d !=0) {
d += 1;
break;
}
}
}
}
} | # 0829, 2024-09-28 09:33:45, Compilation error (0%)
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int d=2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
} else {
while (N > 1) {
if (d*d > N) {
cout << N;
} else {
while (N%d==0) {
N /= d;
cout << d;
} if (N%d !=0) {
d += 1;
break;
}
}
} if (N <= 1) {
break;
}
}
} | # 0830, 2024-09-28 09:36:07, -T---------------- (0%)
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int d=2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
} else {
while (N > 1) {
if (d*d > N) {
cout << N;
} else {
while (N%d==0) {
N /= d;
cout << d;
} if (N%d !=0) {
d += 1;
break;
}
}
}
}
} | # 0831, 2024-09-28 09:44:47, PT--------------PP (16%)
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int d=2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
} else {
while (N > 1) {
if (d*d > N) {
cout << N;
} else {
while (N%d==0) {
N /= d;
cout << d;
} if (N%d !=0) {
d += 1;
break;
}
}
}
}
} | # 0832, 2024-09-28 11:36:18, -TPTTPTPTPTTTTTT-- (22%)
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int d=2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
} else {
while (N > 1) {
if (d*d > N) {
cout << N << " ";
} else {
while (N%d==0) {
N /= d;
cout << d << " ";
} if (N%d !=0) {
d += 1;
}
}
}
}
} | # 0833, 2024-09-28 11:56:24, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int d=2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
} else {
while (N > 1) {
if (d*d > N) {
cout << N << " ";
break;
} else {
while (N%d==0) {
N /= d;
cout << d << " ";
}
if (N%d !=0) {
d += 1;
}
}
}
}
} | # 0834, 2024-09-28 11:56:47, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int d=2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
} else {
while (N > 1) {
if (d*d > N) {
cout << N << " ";
break;
} else {
while (N%d==0) {
N /= d;
cout << d << " ";
break;
}
if (N%d !=0) {
d += 1;
}
}
}
}
} | # 0835, 2024-09-28 11:58:00, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main() {
long long N;
cin >> N;
int d=2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
} else {
while (N > 1) {
if (d*d > N) {
cout << N << " ";
break;
} else {
while (N%d==0) {
N /= d;
cout << d << " ";
}
if (N%d !=0) {
d += 1;
}
}
}
}
} | # 0836, 2024-09-28 11:58:24, -PPPPPPPPPPPPPPP-- (83%)
#include <iostream>
using namespace std;
int main() {
long long N;
cin >> N;
long long d=2;
if (N < 2) {
cout << "No prime factors for numbers less than 2";
} else {
while (N > 1) {
if (d*d > N) {
cout << N << " ";
break;
} else {
while (N%d==0) {
N /= d;
cout << d << " ";
}
if (N%d !=0) {
d += 1;
}
}
}
}
} |
# 0837, 2024-09-28 09:43:30, PPP--P-P-PTTPT--PP (50%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin>>n;
int d = 2;
if(n < 2)
{
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else
{
while(true)
{
if(n > 1)
{
// cout<<"n > 1";
if(d * d > n)
{
/*
*/
for(int i=2;i<=n;i++)
{
int check = 0;
for(int j = 1;j<=i;j++)
{
if(i % j == 0)
{
check += 1;
}
}
if(check == 2)
{
cout<<i<<' ';
}
}
// cout<<endl;
return 0;
}
else
{
// cout<<"2"<<endl;
while(true)
{
if(n % d == 0)
{
n /= d;
/*
for(int i=2;i<=d;i++)
{
int check = 0;
for(int j = 1;j<=i;j++)
{
if(i % j == 0)
{
check += 1;
}
}
if(check == 2)
{
cout<<i<<' ';
}
}
cout<<" |2.1| ";
continue;
*/
cout<<d<<' ';
continue;
}
else
{
d += 1;
// cout<<" |2.2| ";
break;
}
}
// cout<<endl;
continue;
}
}
else
{
return 0;
}
}
}
}
/*
1000
wrong
2 2 2 2 3 5 2 3 5 2 3 5
correct
2 2 2 5 5 5
1000
2
n = 500
n = 250
n = 125
d = 3
d = 4
d = 5
n = 25
2 2 2 2 3 5
*/ | # 0838, 2024-09-28 09:44:14, PP--------TT-T--PP (22%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin>>n;
int d = 2;
if(n < 2)
{
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else
{
while(true)
{
if(n > 1)
{
// cout<<"n > 1";
if(d * d > n)
{
/*
*/
for(int i=2;i<=n;i++)
{
int check = 0;
for(int j = 1;j<=i;j++)
{
if(i % j == 0)
{
check += 1;
}
}
if(check == 2)
{
cout<<i<<' ';
}
}
// cout<<endl;
return 0;
}
else
{
// cout<<"2"<<endl;
while(true)
{
if(n % d == 0)
{
n /= d;
for(int i=2;i<=d;i++)
{
int check = 0;
for(int j = 1;j<=i;j++)
{
if(i % j == 0)
{
check += 1;
}
}
if(check == 2)
{
cout<<i<<' ';
}
}
cout<<" |2.1| ";
continue;
// cout<<d<<' ';
continue;
}
else
{
d += 1;
// cout<<" |2.2| ";
break;
}
}
// cout<<endl;
continue;
}
}
else
{
return 0;
}
}
}
}
/*
1000
wrong
2 2 2 2 3 5 2 3 5 2 3 5
correct
2 2 2 5 5 5
1000
2
n = 500
n = 250
n = 125
d = 3
d = 4
d = 5
n = 25
2 2 2 2 3 5
*/ | # 0839, 2024-09-28 09:44:43, PPP------PTT-T--PP (33%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin>>n;
int d = 2;
if(n < 2)
{
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else
{
while(true)
{
if(n > 1)
{
// cout<<"n > 1";
if(d * d > n)
{
/*
*/
for(int i=2;i<=n;i++)
{
int check = 0;
for(int j = 1;j<=i;j++)
{
if(i % j == 0)
{
check += 1;
}
}
if(check == 2)
{
cout<<i<<' ';
}
}
// cout<<endl;
return 0;
}
else
{
// cout<<"2"<<endl;
while(true)
{
if(n % d == 0)
{
n /= d;
for(int i=2;i<=d;i++)
{
int check = 0;
for(int j = 1;j<=i;j++)
{
if(i % j == 0)
{
check += 1;
}
}
if(check == 2)
{
cout<<i<<' ';
}
}
// cout<<" |2.1| ";
continue;
// cout<<d<<' ';
continue;
}
else
{
d += 1;
// cout<<" |2.2| ";
break;
}
}
// cout<<endl;
continue;
}
}
else
{
return 0;
}
}
}
}
/*
1000
wrong
2 2 2 2 3 5 2 3 5 2 3 5
correct
2 2 2 5 5 5
1000
2
n = 500
n = 250
n = 125
d = 3
d = 4
d = 5
n = 25
2 2 2 2 3 5
*/ | # 0840, 2024-09-28 11:07:55, PPPPPPPPPPTTPTPPPP (83%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin>>n;
int d = 2;
if(n < 2)
{
cout<<"No prime factors for numbers less than 2.";
return 0;
}
else
{
while(true)
{
if(n > 1)
{
// cout<<"n > 1";
if(d * d > n)
{
/*
*/
for(int i=2;i<=n;i++)
{
int check = 0;
for(int j = 1;j<=i;j++)
{
if(i % j == 0)
{
check += 1;
}
}
if(check == 2 && n % i == 0)
{
cout<<i<<' ';
}
}
// cout<<endl;
return 0;
}
else
{
// cout<<"2"<<endl;
while(true)
{
if(n % d == 0)
{
n /= d;
for(int i=2;i<=d;i++)
{
int check = 0;
for(int j = 1;j<=i;j++)
{
if(i % j == 0)
{
check += 1;
}
}
if(check == 2 && d % i == 0)
{
cout<<i<<' ';
}
}
// cout<<" |2.1| ";
continue;
// cout<<d<<' ';
continue;
}
else
{
d += 1;
// cout<<" |2.2| ";
break;
}
}
// cout<<endl;
continue;
}
}
else
{
return 0;
}
}
}
}
/*
1000
wrong
2 2 2 2 3 5 2 3 5 2 3 5
correct
2 2 2 5 5 5
1000
2
n = 500
n = 250
n = 125
d = 3
d = 4
d = 5
n = 25
2 2 2 2 3 5
*/ |
# 0841, 2024-09-28 13:16:15, PPPPPPPPPPTTPTPPPP (83%)
#include <iostream>
using namespace std ;
int main(){
long long N , d = 2;
bool prime = false ;
cin >> N ;
if (N < 2) {
cout << "No prime factors for numbers less than 2." ;
}
while (N > 1) {
if (d*d > N) {
for (int i = 2; i < N-1; i++) {
if (N%i == 0) {
for (int j = 2; j < i-1; j++) {
if (i%j != 0) {
prime = true ;
}
}
if (prime == true) {
cout << i << " " ;
}
}
}
}
prime = false ;
while (N%d == 0) {
N /= d ;
if (d==2 || d==3) {
prime = true ;
}
for (int i = 2; i < d-1; i++) {
if (d%i != 0 ) {
prime = true ;
}
}
if (prime == true) {
cout << d << " " ;
}
}
d +=1 ;
}
} |
# 0842, 2024-09-28 12:55:06, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + " ";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0843, 2024-09-28 12:58:50, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
return 0;
}
int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + " ";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0844, 2024-09-28 13:02:53, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
long long int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + " ";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0845, 2024-09-28 13:03:28, -----------T------ (0%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
long long int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + "";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0846, 2024-09-28 13:03:42, -----------T------ (0%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
long long int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + "";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0847, 2024-09-28 13:04:15, -----------T------ (0%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
long long int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + "";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0848, 2024-09-28 13:04:26, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
long long int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + " ";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0849, 2024-09-28 13:06:56, -PPPPPPPPP-------- (50%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
unsigned int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
unsigned int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + " ";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0850, 2024-09-28 13:07:16, -PPPPPPPPP-------- (50%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
unsigned int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
long long int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + " ";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0851, 2024-09-28 13:07:42, Compilation error (0%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
longlong int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
long long int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + " ";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} | # 0852, 2024-09-28 13:07:54, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long int n;
cin>>n;
string out;
if(n<2){
cout<<"No prime factors for numbers less than 2";
return 0;
}
long long int d = 2;
while(d<=n){
if(n%d == 0){
n /= d;
out += to_string(d) + " ";
}
else{
d++;
}
}
cout<<out.substr(0,out.length()-1)<<endl;
} |
# 0853, 2024-09-28 09:19:24, PP-P--P---------PP (33%)
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,d;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(n>1){
d=2;
if(d*d>n){
cout<<n<<" ";
}
else{
while(n%d==0){
n/=d;
cout<<d<<" ";
}
while(n%d>0){
d+=1;
}
cout<<n;
}
}
}
} | # 0854, 2024-09-28 10:02:18, PP-P--P---------PP (33%)
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,d;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(n>1){
d=2;
if(d*d>n){
cout<<n<<" ";
}
else{
while(n%d==0){
n/=d;
cout<<d<<" ";
}
while(n%d>0){
d+=1;
}
cout<<n;
}
}
}
} | # 0855, 2024-09-28 10:32:58, PP-----P--TT-PPPPP (44%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n,d;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(n>1){
d=2;
if(d*d>n){
cout<<n<<" ";
}
else{
for(int i=0;i<n;i++){
if(n%d==0){
n/=d;
cout<<d<<" ";
}
if(n%d>0){
d++;
}
}
/* while(n%d>0){
d++;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
*/
cout<<n;
}
}
}
} | # 0856, 2024-09-28 10:34:30, PPPPPPP-P-TT----PP (55%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n,d;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(n>1){
d=2;
if(d*d>n){
cout<<n<<" ";
}
else{
for(int i=0;i<n;i++){
if(n%d==0){
n/=d;
cout<<d<<" ";
}
if(n%d>0){
d++;
}
}
/* while(n%d>0){
d++;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
*/
}
}
}
} | # 0857, 2024-09-28 10:44:44, PP-P--P----P----PP (38%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n,d,sum=0;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(n>1){
d=2;
if(d*d>n){
cout<<n<<" ";
}
else{
while(true){
if(n%d==0){
n/=d;
cout<<d<<" ";
}
if(n%d>0){
d++;
if(d>11){
cout<<n;
break;
}
}
}
/* while(n%d>0){
d++;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
*/
}
}
}
} | # 0858, 2024-09-28 10:55:25, PPPPPPPPPP-PP---PP (77%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n,d,sum=0;
cin>>n;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(n>1){
d=2;
if(d*d>n){
cout<<n<<" ";
}
else{
while(true){
if(n%d==0){
n/=d;
cout<<d<<" ";
}
if(n%d>0){
d++;
if(d>11){
if(n==1){
break;
}
cout<<n;
break;
}
}
}
/* while(n%d>0){
d++;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
*/
}
}
}
} |
# 0859, 2024-09-28 09:30:23, -----------T------ (0%)
#include <iostream>
using namespace std;
int main(){
long long n, d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for number less than 2" << endl;
}
else{
while (true){
if (n > 1){
if (d * d > 2){
bool first_k;
for (long long k = 2; k <= n; k++){
while (n % k == 0){
n /= k;
if (first_k){
cout << k;
first_k = false;
}
else{
cout << " " << k;
}
}
if (n == 1){
break;
}
}
break;
}
else{
while (true){
if (n % d == 0){
n /= d;
bool first_d;
for (long long m = 2; m <= d; m++){
while (d % m == 0){
d /= m;
if (first_d){
cout << d;
first_d = false;
}
else{
cout << " " << d;
}
}
if (d == 1){
break;
}
}
continue;
}
else{
d += 1;
break;
}
}
}
continue;
}
else{
break;
}
}
}
} | # 0860, 2024-09-28 09:42:04, -----------T------ (0%)
#include <iostream>
using namespace std;
int main(){
long long n, d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for number less than 2." << endl;
}
else{
while (true){
if (n > 1){
if (d * d > 2){
bool first_k;
for (long long k = 2; k <= n; k++){
while (n % k == 0){
n /= k;
if (first_k){
cout << k;
first_k = false;
}
else{
cout << " " << k;
}
}
if (n == 1){
break;
}
}
break;
}
else{
while (true){
if (n % d == 0){
n /= d;
bool first_d;
for (long long m = 2; m <= d; m++){
while (d % m == 0){
d /= m;
if (first_d){
cout << d;
first_d = false;
}
else{
cout << " " << d;
}
}
if (d == 1){
break;
}
}
continue;
}
else{
d += 1;
break;
}
}
}
continue;
}
else{
break;
}
}
}
} | # 0861, 2024-09-28 09:42:33, P----------T----PP (16%)
#include <iostream>
using namespace std;
int main(){
long long n, d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for numbers less than 2." << endl;
}
else{
while (true){
if (n > 1){
if (d * d > 2){
bool first_k;
for (long long k = 2; k <= n; k++){
while (n % k == 0){
n /= k;
if (first_k){
cout << k;
first_k = false;
}
else{
cout << " " << k;
}
}
if (n == 1){
break;
}
}
break;
}
else{
while (true){
if (n % d == 0){
n /= d;
bool first_d;
for (long long m = 2; m <= d; m++){
while (d % m == 0){
d /= m;
if (first_d){
cout << d;
first_d = false;
}
else{
cout << " " << d;
}
}
if (d == 1){
break;
}
}
continue;
}
else{
d += 1;
break;
}
}
}
continue;
}
else{
break;
}
}
}
} | # 0862, 2024-09-28 09:43:39, P----------T----PP (16%)
#include <iostream>
using namespace std;
int main(){
long long n, d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for numbers less than 2." << endl;
}
else{
while (true){
if (n > 1){
if (d * d > 2){
bool first_k;
for (long long k = 2; k <= n; k++){
while (n % k == 0){
n /= k;
if (first_k){
cout << k;
first_k = false;
}
else{
cout << " " << k;
}
}
if (n == 1){
break;
}
}
cout << endl;
break;
}
else{
while (true){
if (n % d == 0){
n /= d;
bool first_d;
for (long long m = 2; m <= d; m++){
while (d % m == 0){
d /= m;
if (first_d){
cout << d;
first_d = false;
}
else{
cout << " " << d;
}
}
if (d == 1){
break;
}
}
continue;
}
else{
d += 1;
break;
}
}
}
continue;
}
else{
break;
}
}
}
} | # 0863, 2024-09-28 09:58:52, -PPPPPPPPPPTPPPP-- (77%)
#include <iostream>
using namespace std;
int main(){
long long n, d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for number less than 2" << endl;
}
else{
while (true){
if (n > 1){
if (d * d > 2){
bool first_k = true;
for (long long k = 2; k <= n; k++){
while (n % k == 0){
n /= k;
if (first_k){
cout << k;
first_k = false;
}
else{
cout << " " << k;
}
}
if (n == 1){
break;
}
}
break;
}
else{
while (true){
if (n % d == 0){
n /= d;
bool first_d = true;
for (long long m = 2; m <= d; m++){
while (d % m == 0){
d /= m;
if (first_d){
cout << d;
first_d = false;
}
else{
cout << " " << d;
}
}
if (d == 1){
break;
}
}
continue;
}
else{
d += 1;
break;
}
}
}
continue;
}
else{
break;
}
}
cout << endl;
}
} |
# 0864, 2024-09-28 09:09:18, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n ;
cin >> n;
int d = 2 ;
if (n < 2)
{
cout << "No prime factors for number less than 2." ;
} else
{
sec_go :
if (n>1)
{
if ( d * d > n)
{
cout << n<< " ";
} else
{
fri_go :
if (n%d == 0)
{
n /= d ;
cout << d<< " " ;
goto fri_go ;
} else
{
d += 1;
goto sec_go ;
}
}
}
}
return 0 ;
} | # 0865, 2024-09-28 09:09:39, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n ;
cin >> n;
int d = 2 ;
if (n < 2)
{
cout << "No prime factors for number less than 2." ;
} else
{
sec_go :
if (n>1)
{
if ( d * d > n)
{
cout << n<< " ";
} else
{
fri_go :
if (n%d == 0)
{
n /= d ;
cout << d<< " " ;
goto fri_go ;
} else
{
d += 1;
goto sec_go ;
}
}
}
}
return 0 ;
} | # 0866, 2024-09-28 10:02:08, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n ;
cin >> n;
int d = 2 ;
if (n < 2)
{
cout << "No prime factors for number less than 2." ;
} else
{
sec_go :
if (n>1)
{
if ( d * d > n)
{
cout << n<< " ";
} else
{
fri_go :
if (n%d == 0)
{
n /= d ;
cout << d<< " " ;
goto fri_go ;
} else
{
d += 1;
goto sec_go ;
}
}
}
}
return 0 ;
} | # 0867, 2024-09-28 10:02:29, -PPPPPPPPPPTPPPP-- (77%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long n ;
cin >> n;
int d = 2 ;
if (n < 2)
{
cout << "No prime factors for number less than 2." ;
} else
{
sec_go :
if (n>1)
{
if ( d * d > n)
{
cout << n<< " ";
} else
{
fri_go :
if (n%d == 0)
{
n /= d ;
cout << d<< " " ;
goto fri_go ;
} else
{
d += 1;
goto sec_go ;
}
}
}
}
return 0 ;
} |
# 0868, 2024-09-28 09:15:31, -PP--P-P-P-TP----- (33%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers leass than 2.";
}
else{
do{
if(n>1){
if(d*d>n){
cout<<d<<" ";
break;
}
else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}
else{
d+=1;
}
}
}
else{
break;
}
}while(n>1);
}
} | # 0869, 2024-09-28 09:23:01, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers leass than 2.";
}
else{
do{
if(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}
else{
d+=1;
}
}
}
else{
break;
}
}while(n>1);
}
} | # 0870, 2024-09-28 09:33:39, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers leass than 2.";
}
else{
do{
if(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}
else{
d+=1;
}
}
}
else{
break;
}
}while(n>1);
}
} | # 0871, 2024-09-28 09:42:58, -PPPPPPPPPPTPPPP-- (77%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers leass than 2.";
}
else{
do{
if(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
else{
if(n%d==0){
n/=d;
cout<<d<<" ";
}
else{
d+=1;
}
}
}
else{
break;
}
}while(n>1);
}
} |
# 0872, 2024-09-28 09:18:04, PP-PP-P-P-TPTTTTPP (50%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll check(ll a) {
double s = sqrt(a);
int sum = 0;
for(int i = 2 ; i <s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(int i = 2 ; i < sqrt(n) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n;
return 0;
}
}
else {
break;
}
}
}
} | # 0873, 2024-09-28 09:18:24, PP-PP-P-P-TPTTTTPP (50%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll check(ll a) {
double s = sqrt(a);
int sum = 0;
for(int i = 2 ; i <s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(int i = 2 ; i < sqrt(n) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n;
return 0;
}
}
else {
break;
}
}
}
} | # 0874, 2024-09-28 09:22:03, PP-PP-P-PPTPTTTTPP (55%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll check(ll a) {
double s = sqrt(a);
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(int i = 2 ; i < sqrt(n) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n;
return 0;
}
}
else {
break;
}
}
}
} | # 0875, 2024-09-28 09:23:05, PP-P--P---TPTTTTPP (38%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll check(ll a) {
double s = sqrt(a);
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(int i = 2 ; i < sqrt(n) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
if(check(n)==true) {
cout<<n;
return 0;
}
cout<<i<<" ";
}
else {
break;
}
}
}
} | # 0876, 2024-09-28 09:25:37, PP-PP-P-PPTPTTTTPP (55%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll check(ll a) {
double s = sqrt(a);
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(int i = 2 ; i < sqrt(n) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n;
return 0;
}
}
else {
break;
}
}
}
} | # 0877, 2024-09-28 09:27:00, PP-PP-P-PPTPTTTTPP (55%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll check(ll a) {
double s = sqrt(a);
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(int i = 2 ; i < sqrt(n) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n<<" ";
return 0;
}
}
else {
break;
}
}
}
} | # 0878, 2024-09-28 09:30:56, PPPPPPPPPPTPTTTTPP (72%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
bool check(ll a) {
double s = floor(sqrt(a));
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(int i = 2 ; i <= floor(sqrt(n)) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n<<" ";
return 0;
}
}
else {
break;
}
}
}
} | # 0879, 2024-09-28 09:33:32, PPPPPPPPPPTPTTTTPP (72%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
bool check(ll a) {
double s = floor(sqrt(a));
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(int i = 2 ; i <= floor(sqrt(n)) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n<<" ";
return 0;
}
}
else {
break;
}
}
}
} | # 0880, 2024-09-28 09:35:00, PPPPPPPPPPTPTTTTPP (72%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
bool check(ll a) {
double s = floor(sqrt(a));
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum ==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
vector<ll> v;
for(ll i = 2 ; i <= floor(sqrt(n)); i++) {
if(check(i) == true) v.push_back(i);
}
for(int i = 0 ; i < v.size() ; i++) {
while(n%v[i] == 0) {
if(n%v[i] == 0) {
n = n/v[i];
cout<<v[i]<<" ";
if(check(n)==true) {
cout<<n<<" ";
return 0;
}
}
else {
break;
}
}
}
} | # 0881, 2024-09-28 09:39:35, PP-PP-P-PPTPTTTTPP (55%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll check(ll a) {
double s = sqrt(a);
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(int i = 2 ; i < sqrt(n) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n;
return 0;
}
}
else {
break;
}
}
}
} | # 0882, 2024-09-28 09:39:56, PPPPPPPPPPTPTTTTPP (72%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
bool check(ll a) {
double s = floor(sqrt(a));
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum ==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
vector<ll> v;
for(ll i = 2 ; i <= floor(sqrt(n)); i++) {
if(check(i) == true) v.push_back(i);
}
for(int i = 0 ; i < v.size() ; i++) {
while(n%v[i] == 0) {
if(n%v[i] == 0) {
n = n/v[i];
cout<<v[i]<<" ";
if(check(n)==true) {
cout<<n<<" ";
return 0;
}
}
else {
break;
}
}
}
} | # 0883, 2024-09-28 09:45:27, PPPPPPPPPPTPTTTTPP (72%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
bool check(ll a) {
ll s = floor(sqrt(a));
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
if(sum > 0) break;
}
if(sum == 0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
vector<ll> v;
for(ll i = 2 ; i <= floor(sqrt(n)); i++) {
if(check(i) == true) v.push_back(i);
}
int g = v.size();
for(int i = 0 ; i < g ; i++) {
while(n%v[i] == 0) {
if(n%v[i] == 0) {
n = n/v[i];
cout<<v[i]<<" ";
if(check(n)==true) {
cout<<n<<" ";
return 0;
}
}
else {
break;
}
}
}
} | # 0884, 2024-09-28 09:47:21, PPPPPPPPPPTPTTTTPP (72%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
bool check(ll a) {
double s = floor(sqrt(a));
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(ll i = 2 ; i <= floor(sqrt(n)) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n<<" ";
return 0;
}
}
else {
break;
}
}
}
} | # 0885, 2024-09-28 09:47:55, PPPPPPPPPPTPTTTTPP (72%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
bool check(ll a) {
double s = floor(sqrt(a));
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(ll i = 2 ; i <= floor(sqrt(n)) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n;
return 0;
}
}
else {
break;
}
}
}
} | # 0886, 2024-09-28 10:30:21, PPPPPPPPPPTPTTTTPP (72%)
#include<bits/stdc++.h>
using namespace std;
#define ll long long
bool check(ll a) {
double s = floor(sqrt(a));
int sum = 0;
for(int i = 2 ; i <=s ; i++) {
if(a%i == 0) sum++;
}
if(sum==0 )return true;
else return false;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n;
cin>>n;
if(n<2) {
cout<<"No prime factors for numbers less than 2.";
return 0;
}
if(check(n)==true) {
cout<<n;
return 0;
}
for(ll i = 2 ; i <= floor(sqrt(n)) ; i++) {
while(n%i == 0) {
if(n%i == 0 && check(i)==true) {
n = n/i;
cout<<i<<" ";
if(check(n)==true) {
cout<<n;
return 0;
}
}
else {
break;
}
}
}
} |
# 0887, 2024-09-28 09:14:49, -PPPPPPPPP-TP----- (55%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
double d = 2;
if (number < 2){
cout << "No prime factors for number less than 2";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if (d*d> number){
cout << number;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0888, 2024-09-28 09:15:18, -PPPPPPPPPTTP----- (55%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
long long d = 2;
if (number < 2){
cout << "No prime factors for number less than 2";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if (d*d> number){
cout << number;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0889, 2024-09-28 09:42:02, -PPPPPPPPPTTP----- (55%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
long long d = 2;
if (number < 2){
cout << "No prime factors for number less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if (d*d> number){
cout << number;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0890, 2024-09-28 10:02:09, -PPPPPPPPPTTP----- (55%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
long long d = 2;
if (number < 2){
cout << "No prime factors for number less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if (d*d> number){
cout << number;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0891, 2024-09-28 10:13:09, -PPPPPPPPPTTP----- (55%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
long long d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if (d*d> number){
cout << number;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0892, 2024-09-28 10:13:44, PPPPPPPPPPTTP---PP (72%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
long long d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if (d*d> number){
cout << number;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0893, 2024-09-28 10:16:29, PPPPPPPPPPTTP---PP (72%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
long long d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if ( d*d > number){
cout << number;
return 0;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0894, 2024-09-28 10:17:38, PPPPPPPPPPTTP---PP (72%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
long long d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if ( pow(d,2) > number){
cout << number;
return 0;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0895, 2024-09-28 11:39:08, -----------T------ (0%)
#include <bits/stdc++.h>
using namespace std;
int main(){
double number;
cin >> number;
cout << number;
double d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if ( d*d > number){
cout << number;
return 0;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << number << endl;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0896, 2024-09-28 11:39:28, ----------TT------ (0%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
cout << number;
long long d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if ( d*d > number){
cout << number;
return 0;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << number << endl;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0897, 2024-09-28 11:40:00, ----------TT------ (0%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
cout << number;
long long d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if ( d*d > number){
cout << number;
return 0;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
//cout << number << endl;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0898, 2024-09-28 11:40:37, ----------TT------ (0%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
cout << number;
long long d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if ( d*d > number){
cout << number;
return 0;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << number << endl;
//cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0899, 2024-09-28 11:49:36, PP-P--P----P----PP (38%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
long long d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if ( d*d > number){
cout << number;
return 0;
}
else
{
Flag2:
if (number&d == 0){
number/=d;
//cout << number << endl;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} | # 0900, 2024-09-28 11:50:11, PPPPPPPPPPTTP---PP (72%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long number;
cin >> number;
long long d = 2;
if (number < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
Flag:
if (number <= 1){
//do nothing
}
else{
if ( pow(d,2) > number){
cout << number;
return 0;
}
else
{
Flag2:
if (fmod(number,d) == 0){
number/=d;
cout << d << " ";
goto Flag2;
}
else{
d+=1;
}
goto Flag;
}
}
}
return 0;
} |
# 0901, 2024-09-28 12:47:18, PPTPPTPTPTTTTTTTPP (44%)
#include <iostream>
#include <cmath>
int main()
{
int N , d;
std::cin >> N ;
d=2;
if(N<2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
else
{
while(true)
if(N>1)
{
if(d*d>N)
{
std::cout << N ;
break;
}
else
{
while(N %d==0)
{
N/=d;
std::cout << d << " " ;
}
d+=1;
continue;
}
}
}
} | # 0902, 2024-09-28 12:51:15, PPTPPTPTPTTTTTTTPP (44%)
#include <iostream>
#include <cmath>
int main()
{
int N ;
std::cin >> N ;
int d=2;
if(N<2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
else
{
while(true)
{
if(N>1)
{
if(d*d>N)
{
std::cout << N ;
break;
}
else
{
while(N %d==0)
{
N/=d;
std::cout << d << " " ;
}
d+=1;
}
}
}
}
} | # 0903, 2024-09-28 12:55:17, PPTPPTPTPTTTTTTTPP (44%)
#include <iostream>
#include <cmath>
int main()
{
int N ;
std::cin >> N ;
int d=2;
if(N<2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
else
{
while(true)
{
if(N>1)
{
if(d*d>N)
{
std::cout << N ;
break;
}
else
{
while(N %d==0)
{
N/=d;
std::cout << d << " " ;
}
d+=1;
}
}
}
}
} | # 0904, 2024-09-28 12:56:42, PPTPPTPTPTPTTPPPPP (66%)
#include <iostream>
#include <cmath>
int main()
{
long long N ;
std::cin >> N ;
int d=2;
if(N<2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
else
{
while(true)
{
if(N>1)
{
if(d*d>N)
{
std::cout << N ;
break;
}
else
{
while(N %d==0)
{
N/=d;
std::cout << d << " " ;
}
d+=1;
}
}
}
}
} | # 0905, 2024-09-28 12:57:11, PPTPPTPTPTPPTPPPPP (72%)
#include <iostream>
#include <cmath>
int main()
{
long long N ;
std::cin >> N ;
long long d=2;
if(N<2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
else
{
while(true)
{
if(N>1)
{
if(d*d>N)
{
std::cout << N ;
break;
}
else
{
while(N %d==0)
{
N/=d;
std::cout << d << " " ;
}
d+=1;
}
}
}
}
} | # 0906, 2024-09-28 13:06:37, PPTPPTPTPT------PP (44%)
#include <iostream>
#include <cmath>
int main()
{
int N ;
std::cin >> N ;
long long d=2;
if(N<2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
else
{
while(true)
{
if(N>1)
{
if(d*d>N)
{
std::cout << N ;
break;
}
else
{
while(N %d==0)
{
N/=d;
std::cout << d << " " ;
}
d+=1;
}
}
}
}
} | # 0907, 2024-09-28 13:06:53, PPTPPTPTPTPPTPPPPP (72%)
#include <iostream>
#include <cmath>
int main()
{
long long N ;
std::cin >> N ;
long long d=2;
if(N<2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
else
{
while(true)
{
if(N>1)
{
if(d*d>N)
{
std::cout << N ;
break;
}
else
{
while(N %d==0)
{
N/=d;
std::cout << d << " " ;
}
d+=1;
}
}
}
}
} | # 0908, 2024-09-28 13:58:21, PPTPPTPTPTPPTPPPPP (72%)
#include <iostream>
#include <cmath>
int main()
{
long long N ;
std::cin >> N ;
long long d=2;
if(N<2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
else
{
while(true)
{
if(N>1)
{
if(d*d>N)
{
std::cout << N ;
break;
}
else
{
while(N %d==0)
{
N/=d;
std::cout << d << " " ;
}
d+=1;
}
}
}
}
return 0 ;
} |
# 0909, 2024-09-28 12:40:17, -TPTTPTPTPTTPTTT-- (27%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for number less than 2";
}else{
do{
if(d*d>n){
for(int i = d ; i < n ; i++){
while(n%i==0){
cout << i << " ";
n = n/i;
}
}
}else{
for(int i = d ; i < n ; i++){
while(n%i==0){
cout << i << " ";
n /=i;
}
}
}
}while(n>1);
}
} | # 0910, 2024-09-28 12:40:40, -TPTTPTPTPTTPTTT-- (27%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for number less than 2";
}else{
do{
if(d*d>n){
for(int i = d ; i < n ; i++){
while(n%i==0){
cout << i << " ";
n = n/i;
}
}
}else{
for(int i = d ; i < n ; i++){
while(n%i==0){
cout << i << " ";
n /=i;
}
}
}
}while(n>1);
}
} | # 0911, 2024-09-28 12:42:10, --P--P-P-P-TP----- (27%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for number less than 2";
}else{
for(int i = d ; i < n ; i++){
while(n%i==0){
cout << i << " ";
n = n/i;
}
}
}
} | # 0912, 2024-09-28 12:47:20, -PPPPPPPPP-PP----- (61%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for number less than 2";
}else{
for(int i = d ; i < 8 ; i++){
while(n%i==0){
cout << i << " ";
n = n/i;
}
}
}
if(n!=1){
cout << n;
}
} | # 0913, 2024-09-28 12:48:31, -PPPPPPPPP-PP----- (61%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for number less than 2.";
}else{
for(int i = d ; i < 8 ; i++){
while(n%i==0){
cout << i << " ";
n = n/i;
}
}
}
if(n!=1){
cout << n;
}
} | # 0914, 2024-09-28 12:49:07, PPPPPPPPPP-PP----- (66%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}else{
for(int i = d ; i < 8 ; i++){
while(n%i==0){
cout << i << " ";
n = n/i;
}
}
}
if(n!=1){
cout << n;
}
} | # 0915, 2024-09-28 12:50:05, PPPPPPPPPP-PP----- (66%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}else{
for(long long i = d ; i < 8 ; i++){
while(n%i==0){
cout << i << " ";
n = n/i;
}
}
}
if(n!=1){
cout << n;
}
} | # 0916, 2024-09-28 12:50:37, PP-PP-P-PPPPPPPP-- (72%)
#include<iostream>
using namespace std;
int main(){
long long n;
cin >> n;
long long d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}else{
for(long long i = d ; i*i < n ; i++){
while(n%i==0){
cout << i << " ";
n = n/i;
}
}
}
if(n!=1){
cout << n;
}
} |
# 0917, 2024-09-28 12:59:04, -TPTTPTPTPTTPTTT-- (27%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long n;
cin>>n;
long long d=2;
//long long prime[100];
if(n<2){
cout<<"No prime factors for numbers less thamn 2."<<endl;
}else{
while(n>1){
if((d*d)>n){
if(n%2 ==0) cout<<"2 "<<endl;
}else{
while(n%d ==0){
if(n%d ==0) cout<<d<<" ";
n/=d;
}
d+=1;
}
}
}
} | # 0918, 2024-09-28 14:57:15, -P-PP-P-P-PP-PPP-- (55%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long n;
cin>>n;
long long d=2;
//long long prime[100];
if(n<2){
cout<<"No prime factors for numbers less thamn 2."<<endl;
}else{
while((n>1)&&(d<=sqrt(n))){
if((d*d)>n){
if(n%2 ==0) cout<<"2 "<<endl;
}else{
while(n%d ==0){
cout<<d<<" ";
n/=d;
}
d+=1;
}
}
cout<<n;
}
} | # 0919, 2024-09-28 14:58:20, PP-PP-P-P-PP-PPPPP (72%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long n;
cin>>n;
long long d=2;
//long long prime[100];
if(n<2){
cout<<"No prime factors for numbers less than 2."<<endl;
}else{
while((n>1)&&(d<=sqrt(n))){
if((d*d)>n){
if(n%2 ==0) cout<<"2 "<<endl;
}else{
while(n%d ==0){
cout<<d<<" ";
n/=d;
}
d+=1;
}
}
cout<<n;
}
} |
# 0920, 2024-09-28 12:30:45, --PPPPPPPPPTPPPP-- (72%)
#include<iostream>
using namespace std;
int main(){
long long int n;
cin >> n;
int d = 2;
if(n <= 2){
cout << "No prime factors for number less than 2.";
}else{
while( n > 1){
if(d * d > n){
cout << n << " ";
break;
}else{
while(n%d == 0){
n/=d;
cout << d << " ";
}
if(n%d != 0){
d += 1;
}
}
}
}
} |
# 0921, 2024-09-28 09:17:19, PPPTTTTTTPTTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
cout << input << " ";
break;
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
break;
}
}
}
} | # 0922, 2024-09-28 11:21:59, PPTTTTTTTTTTTTTTPP (22%)
#include <iostream>
#include <vector>
using namespace std;
int main() {
int input;
cin >> input;
vector<int> set;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
set.push_back(input);
}
if (set.empty()) {
continue;
} else {
for (int i = 0; i < set.size(); ++i) {
cout << set[i] << " ";
}
break;
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
++divine;
break;
}
}
}
} | # 0923, 2024-09-28 11:22:17, PPTTTTTTTTTTTTTTPP (22%)
#include <iostream>
#include <vector>
using namespace std;
int main() {
int input;
cin >> input;
vector<int> set;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
set.push_back(input);
}
if (set.empty()) {
continue;
} else {
for (int i = 0; i < set.size(); ++i) {
cout << set[i] << " ";
}
break;
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
++divine;
break;
}
}
}
} | # 0924, 2024-09-28 11:22:31, PPPTTTTTTPTTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
cout << input << " ";
break;
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
break;
}
}
}
} | # 0925, 2024-09-28 11:22:58, PPPTPPTTTPTTTTTTPP (44%)
#include <iostream>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
cout << input << " ";
break;
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
++divine;
break;
}
}
}
} | # 0926, 2024-09-28 11:24:51, PPPTPPTTTPTTTTTTPP (44%)
#include <iostream>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
cout << input << " ";
break;
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
divine += 1;
break;
}
}
}
} | # 0927, 2024-09-28 11:26:42, P-PTTPTTTPTTTTTTPP (33%)
#include <iostream>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
cout << input << " ";
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
divine += 1;
break;
}
}
}
} | # 0928, 2024-09-28 11:27:03, PPPTPPTTTPTTTTTTPP (44%)
#include <iostream>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
cout << input << " ";
break;
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
divine += 1;
break;
}
}
}
} | # 0929, 2024-09-28 11:38:53, PTTTTTTTTTTTTTTTPP (16%)
#include <iostream>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
int cal1 = divine * divine;
if (cal1 > input) {
cout << input << " ";
} else {
if (input % divine == 0) {
input /= divine;
cout << divine << " ";
} else {
divine += 1;
}
}
}
} | # 0930, 2024-09-28 11:39:07, PPPTPPTTTPTTTTTTPP (44%)
#include <iostream>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
cout << input << " ";
break;
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
divine += 1;
break;
}
}
}
} | # 0931, 2024-09-28 11:39:12, PPPTPPTTTPTTTTTTPP (44%)
#include <iostream>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
if (divine * divine > input) {
cout << input << " ";
break;
}
while (input % divine == 0) {
input /= divine;
cout << divine << " ";
if (input % divine != 0) {
divine += 1;
break;
}
}
}
} | # 0932, 2024-09-28 11:46:23, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <vector>
using namespace std;
int main() {
int input;
cin >> input;
int divine = 2;
vector<int> set;
if (input < 2) {
cout << "No prime factors for numbers less than 2." << endl;
}
while (input > 1) {
int cal1 = divine * divine;
if (divine * divine > input) {
set.push_back(input);
if (set.empty()) {
continue;
} else {
for (int i = 0; i < set.size(); ++i) {
cout << set[i] << " ";
}
break;
}
} else {
if (input % divine == 0) {
input /= divine;
cout << divine << " ";
} else {
divine += 1;
}
}
}
} |
# 0933, 2024-09-28 12:32:39, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else{
while(N % d == 0){
N /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} | # 0934, 2024-09-28 12:32:53, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else{
while(N % d == 0){
N /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} | # 0935, 2024-09-28 12:33:06, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else{
while(N % d == 0){
N /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} | # 0936, 2024-09-28 13:32:34, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else{
while(N % d == 0){
N /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} | # 0937, 2024-09-28 14:26:41, P--------P------PP (22%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
/*while(N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else{
while(N % d == 0){
N /= d;
cout << d << " ";
}
d += 1;
}
}*/
for(int i=2; i < ceil(sqrt(N)); i++){
while(N % i == 0){
N /= i;
cout << i << " ";
}
}
}
return 0;
} | # 0938, 2024-09-28 14:29:21, PP-PP-P-P-------PP (44%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
/*while(N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else{
while(N % d == 0){
N /= d;
cout << d << " ";
}
d += 1;
}
}*/
for(int i=2; i < ceil(sqrt(N));){
while(N % i == 0){
N /= i;
cout << i << " ";
}
i++;
}
cout << N;
}
return 0;
} | # 0939, 2024-09-28 14:30:05, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else{
while(N % d == 0){
N /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} | # 0940, 2024-09-28 15:18:21, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else{
while(N % d == 0){
N /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} | # 0941, 2024-09-28 15:18:28, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while(N > 1){
if(d*d > N){
cout << N << " ";
break;
}
else{
while(N % d == 0){
N /= d;
cout << d << " ";
}
d += 1;
}
}
}
return 0;
} |
# 0942, 2024-09-28 11:30:27, P-P--P-P-PTTTTTTPP (38%)
#include<bits//stdc++.h>
using namespace std;
int main(){
int N;
cin>>N;
int d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(N>1){
while(d*d<=N){
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
if(N<=1){
break;
}
}
d+=1;
}
}
return 0;
} | # 0943, 2024-09-28 11:35:41, P-P--P-P-PTTTTTTPP (38%)
#include<bits//stdc++.h>
using namespace std;
int main(){
int N;
cin>>N;
int d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(N>1){
while(d*d<=N){
if(d*d>N){
cout<<N;
return 0;
}
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
if(N<=1){
break;
}
}
d+=1;
}
}
return 0;
} | # 0944, 2024-09-28 11:42:59, P-P--P-P-PTTTTTTPP (38%)
#include<bits//stdc++.h>
using namespace std;
int main(){
int N;
cin>>N;
int d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(N>1){
if(d*d<=N){
while(d*d<=N){
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
if(N<=1){
break;
}
}
d+=1;
}
}
else{
cout<<d;
}
}
return 0;
} | # 0945, 2024-09-28 11:43:22, P-P--P-P-PTTTTTTPP (38%)
#include<bits//stdc++.h>
using namespace std;
int main(){
int N;
cin>>N;
int d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(N>1){
if(d*d<=N){
while(d*d<=N){
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
if(N<=1){
break;
}
}
d+=1;
}
}
else{
cout<<d;
}
}
return 0;
} | # 0946, 2024-09-28 11:44:00, P-P--P-P-PTTTTTTPP (38%)
#include<bits//stdc++.h>
using namespace std;
int main(){
int N;
cin>>N;
int d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(N>1){
if(d*d<=N){
while(d*d<=N){
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
if(N<=1){
break;
}
}
d+=1;
}
}
else{
cout<<d;
}
}
return 0;
} | # 0947, 2024-09-28 11:58:36, P--PP-P-P-PP-PPPPP (66%)
#include<bits//stdc++.h>
using namespace std;
int main(){
long long int N;
cin>>N;
long long int d=2;
if(N<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
if(N>1){
if(d*d<=N){
while(d*d<=N){
while(N%d==0){
N/=d;
cout<<d<<" ";
}
d+=1;
if(N<=1){
break;
}
}
if(d*d>N){
cout<<N;
}
d+=1;
}
}
}
return 0;
} |
# 0948, 2024-09-28 13:18:01, PTTTTTTTTTTTTTTTPP (16%)
#include <iostream>
using namespace std;
int main () {
int N;
cin >> N;
int d=2;
if (N < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while ( N > 1){
if (d*d > N){
cout << "1" << " " << d<< " " ;
}else {
if (N % d == 0){
N /= d;
cout << d << " ";
}else {
d+= 1 ;
}
}
}
}
} | # 0949, 2024-09-28 14:25:36, PTTTTTTTT-TTTTTTPP (16%)
#include <iostream>
using namespace std;
int main () {
int n;
cin >> n;
int d=2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while ( n > 1){
while (d*d < n){
while (n%d ==0){
n /= d;
if ( d == 2 || d == 3 || d == 5|| d == 7|| d == 11 ){
cout << d <<" " ;
}
}
d += 1;
}
if ( d == 2 || d == 3 || d == 5|| d == 7|| d == 11 ){
cout << d <<" " ;
}
}
}
} | # 0950, 2024-09-28 14:52:55, PPTPPTPTP-TTTTTTPP (44%)
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main () {
int n;
cin >> n;
int d=2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while ( n > 1){
while (d*d < n){
while (n%d ==0){
n /= d;
int count = 0;
for (int i = 1; i <= d; i++){
if (d % i == 0){
count++;
}
}
if (count <= 2){
cout << d <<" " ;
}
}
d += 1;
}
int count = 0;
for (int i = 1; i <= n; i++){
if (n % i == 0){
count++;
}
}
if (count <= 2){
cout << n <<" " ;
break;
}
}
}
} | # 0951, 2024-09-28 14:56:25, PPTPPTPTP-PT-PPPPP (66%)
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main () {
long long n;
cin >> n;
long long d=2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while ( n > 1){
while (d*d < n){
while (n%d ==0){
n /= d;
int count = 0;
for (int i = 1; i <= d; i++){
if (d % i == 0){
count++;
}
}
if (count <= 2){
cout << d <<" " ;
}
}
d += 1;
}
int count = 0;
for (int i = 1; i <= n; i++){
if (n % i == 0){
count++;
}
}
if (count <= 2){
cout << n <<" " ;
break;
}
}
}
} | # 0952, 2024-09-28 14:59:29, PPTPPTPTP--T----PP (44%)
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main () {
long long n;
cin >> n;
long long d=2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while ( n > 1){
while (d*d < n){
while (n%d ==0){
n /= d;
int count = 0;
for (int i = 1; i <= d; i++){
if (d % i == 0){
count++;
}
if (count > 2)break;
}
if (count <= 2){
cout << d <<" " ;
break;
}
}
d += 1;
}
int count = 0;
for (int i = 1; i <= n; i++){
if (n % i == 0){
count++;
}
if (count > 2)break;
}
if (count <= 2){
cout << n <<" " ;
break;
}
}
}
} | # 0953, 2024-09-28 15:09:37, PPTPPTPTP-PT-PPPPP (66%)
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main () {
long long n;
cin >> n;
long long d=2;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while ( n > 1){
while (d*d < n){
while (n%d ==0){
n /= d;
int count = 0;
for (int i = 1; i <= d; i++){
if (d % i == 0){
count++;
}
}
if (count <= 2){
cout << d <<" " ;
}
}
d += 1;
}
int count = 0;
for (int i = 1; i <= n; i++){
if (n % i == 0){
count++;
}
}
if (count <= 2){
cout << n <<" " ;
break;
}
}
}
} |
# 0954, 2024-09-28 12:36:07, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else while(N > 1){
if(d*d > N){
cout << N;
break;
} else while(N%d == 0){
N /= d;
cout << d << ' ';
}
d += 1;
}
} | # 0955, 2024-09-28 12:36:39, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else while(N > 1){
if(d*d > N){
cout << N;
break;
} else while(N%d == 0){
N /= d;
cout << d << ' ';
}
d += 1;
}
} | # 0956, 2024-09-28 12:37:49, PPPPPPPPPPTTTTTT-- (55%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2 && N > 0){
cout << "No prime factors for numbers less than 2.";
} else while(N > 1){
if(d*d > N){
cout << N;
break;
} else while(N%d == 0){
N /= d;
cout << d << ' ';
}
d += 1;
}
} | # 0957, 2024-09-28 13:30:32, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
} else while(N > 1){
if(d*d > N){
cout << N;
break;
} else while(N%d == 0){
N /= d;
cout << d << ' ';
}
d += 1;
}
} | # 0958, 2024-09-28 15:17:00, PPPPPPPPPPTTTTTTPP (66%)
#include <iostream>
using namespace std;
int main()
{
int N;
cin >> N;
int d = 2;
if (N < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
while (N > 1)
{
if (d * d > N)
{
cout << N;
break;
}
else
while (N % d == 0)
{
N /= d;
cout << d << ' ';
}
d += 1;
}
} |
# 0959, 2024-09-28 09:34:34, -PPTPPTTTTTTTTTT-- (22%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2" << endl;
}else{
while(N>1){
if((d*d)>N){
cout << N << ' ';
break;
}else{
for(;N%d == 0; d+=1){
N /= d;
cout << d << ' ';
}
}
}
}
} | # 0960, 2024-09-28 09:44:56, PPPTPPTTTTTTTTTTPP (38%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2." << endl;
}else{
while(N>1){
if((d*d)>N){
cout << N << ' ';
break;
}else{
for(;N%d == 0; d+=1){
N /= d;
cout << d << ' ';
}
}
}
}
} | # 0961, 2024-09-28 09:45:38, PPPTPPTTTTTTTTTTPP (38%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2." << endl;
}else{
while(N>1){
if((d*d)>N){
cout << N << ' ';
break;
}else{
for(;N%d == 0; d+=1){
N /= d;
cout << d << ' ';
}
}
}
}
} | # 0962, 2024-09-28 09:49:53, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2." << endl;
}else{
while(N>1){
if((d*d)>N){
cout << N << ' ';
break;
}else{
while(true){
if(N%d == 0){
N /= d;
cout << d << ' ';
break;
}else{
d++;
}
}
}
}
}
} | # 0963, 2024-09-28 10:02:24, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2." << endl;
}else{
while(N>1){
if((d*d)>N){
cout << N << ' ';
break;
}else{
while(true){
if(N%d == 0){
N /= d;
cout << d << ' ';
break;
}else{
d++;
}
}
}
}
}
} |
# 0964, 2024-09-28 13:33:29, P--PPPPPP--P----PP (55%)
#include <iostream>
#include <cmath>
using namespace std;
bool isPrime(int num){
for (long long int i=2;i<num;i++){
if (num%i==0){
return false;
}
}
return true;
}
int main(){
long long int N;
long long int d=2;
cin >> N;
if (N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while (N > 2){
if (isPrime(N)){
cout << N;
break;
}
for (long long int i=2;i<N;i++){
if (isPrime(i) && N%i==0){
cout << i << " ";
N/=i;
break;
}
}
}
}
} | # 0965, 2024-09-28 14:23:36, PTPTTPTPTPxxPxxxPP (44%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
long long int N;
long long int d = 2;
cin >> N;
if (N<2){
cout << "No prime factors for numbers less than 2.";
}
else{
while (N>1){
if (d*d>N){
cout << N << " ";
}
else{
while (N%d==0)
{
N/=d;
cout << d << " ";
}
d+=1;
}
}
}
} | # 0966, 2024-09-28 14:27:59, P--PPPPPP-TTPPPP-T (61%)
#include <iostream>
#include <cmath>
using namespace std;
bool isPrime(u_int64_t num){
for (u_int64_t i=2;i<floor(num/2);i++){
if (num%i==0){
return false;
}
}
return true;
}
int main(){
u_int64_t N;
cin >> N;
if (N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while (N > 2){
if (isPrime(N)){
cout << N;
break;
}
for (u_int64_t i=2;i<N;i++){
if (isPrime(i) && N%i==0){
cout << i << " ";
N/=i;
break;
}
}
}
}
} | # 0967, 2024-09-28 14:28:26, P--PPPPPP-TTPPPP-T (61%)
#include <iostream>
#include <cmath>
using namespace std;
bool isPrime(u_int64_t num){
for (u_int64_t i=2;i<num;i++){
if (num%i==0){
return false;
}
}
return true;
}
int main(){
u_int64_t N;
cin >> N;
if (N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while (N > 2){
if (isPrime(N)){
cout << N;
break;
}
for (u_int64_t i=2;i<N;i++){
if (isPrime(i) && N%i==0){
cout << i << " ";
N/=i;
break;
}
}
}
}
} | # 0968, 2024-09-28 14:30:30, P--PPPPPP-TPPPPP-- (66%)
#include <iostream>
#include <cmath>
using namespace std;
bool isPrime(u_int64_t num){
if (num > 50){
for (u_int64_t i=2;i<ceil(sqrt(num));i++){
if (num%i==0){
return false;
}
}
}
else{
for (u_int64_t i=2;i<num;i++){
if (num%i==0){
return false;
}
}
}
return true;
}
int main(){
u_int64_t N;
cin >> N;
if (N < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
while (N > 2){
if (isPrime(N)){
cout << N;
break;
}
for (u_int64_t i=2;i<N;i++){
if (isPrime(i) && N%i==0){
cout << i << " ";
N/=i;
break;
}
}
}
}
} |
# 0969, 2024-09-28 09:12:10, --P--P-P-PTTTTTT-- (22%)
#include<iostream>
using namespace std;
int main(){
int n,d;
cin>>n;
d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(n>1){
if(d*d>n){
cout<<d<<" "<<d;
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
} | # 0970, 2024-09-28 09:14:14, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main(){
int n,d;
cin>>n;
d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
} | # 0971, 2024-09-28 09:33:11, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main(){
int n,d;
cin>>n;
d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
} | # 0972, 2024-09-28 09:41:30, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main(){
int n,d;
cin>>n;
d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
cout<<n<<" ";
break;
}
while(n%d==0){
n/=d;
cout<<d<<" ";
}
d+=1;
}
}
} |
# 0973, 2024-09-28 13:02:52, P---------TTTTTTPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n ;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
while(n>1){
if(d*d>n){
cout << n;
}
if(n%d==0){
n/=d;
cout << d << " ";
}else{
d++;
}
}
} | # 0974, 2024-09-28 13:05:10, P---------TTTTTTPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n ;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
while(n>1){
if(d*d>n){
cout << n<< " ";
}
if(n%d==0){
n=n/d;
cout << d << " ";
}else{
d++;
}
}
} | # 0975, 2024-09-28 13:07:03, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n ;
int d = 2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
while(n>1){
if(d*d>n){
cout << n<< " ";
break;
}
if(n%d==0){
n=n/d;
cout << d << " ";
}else{
d++;
}
}
} |
# 0976, 2024-09-28 13:02:02, -PPPPPPPPPTTTTTT-- (50%)
#include<iostream>
using namespace std;
int main() {
int N;
cin >> N;
int d=2;
if(N<2) {
cout << "No prime factors for numbers less than 2" << endl;
} else {
while(N>=d) {
if(N%d==0){
cout << d;
N=N/d;
if(N>1) {
cout << " ";
}
}else {
d++;
}
}
}
} | # 0977, 2024-09-28 13:19:12, PPPPPPPPPPTTTTTTPP (66%)
#include<iostream>
using namespace std;
int main() {
int N;
cin >> N;
int d=2;
if(N<2) {
cout << "No prime factors for numbers less than 2." << endl;
} else {
while(N>=d) {
if(N%d==0){
cout << d;
N=N/d;
if(N>1) {
cout << " ";
}
}else {
d++;
}
}
}
} |
# 0978, 2024-09-28 09:31:42, ------------------ (0%)
#include <iostream>
using namespace std;
int main(){
int N=N<=19;
cin >> N;
int d=2;
while(N<2){
if(N<2){
cout << "No prime factors for numbers less than2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}break;
}
} | # 0979, 2024-09-28 09:33:15, ------------------ (0%)
#include <iostream>
using namespace std;
int main(){
int N=N<=19;
cin >> N;
int d=2;
while(N<2){
if(N<2){
cout << "No prime factors for numbers less than2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}break;
}
} | # 0980, 2024-09-28 09:52:17, PP--------------PP (22%)
#include <iostream>
using namespace std;
int main(){
int N;
N = N <= 19;
cin >> N;
int d=2;
while (true){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}break;
}
} | # 0981, 2024-09-28 10:10:37, P-P-----P-TTTTTT-- (16%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i;i<N;++i<=19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0982, 2024-09-28 10:14:38, PPPPP-P-P-TTTTTT-- (38%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i=0;i<N;++i<=19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0983, 2024-09-28 10:15:17, PP-P--P---TTTTTT-- (22%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i=0;i<N;++i<=19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
break;
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
break;
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0984, 2024-09-28 10:15:39, PP-P--P---TTTTTT-- (22%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i=0;i<N;++i<=19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
break;
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0985, 2024-09-28 10:21:50, PPPPP-P-P-TTTTTT-- (38%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i=0;i<N;i++ <= 19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0986, 2024-09-28 10:26:00, -P-PP-P---TTTTTT-- (22%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i=1;i<N;i++ <= 19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0987, 2024-09-28 10:26:17, PPPPP-P-P-TTTTTT-- (38%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i;i<N;i++ <= 19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0988, 2024-09-28 10:27:25, PP---------------- (11%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i;i<N;i++ <= 19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}break;
}break;
}
} | # 0989, 2024-09-28 10:27:52, PP---------------- (11%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i;i<N;i++ <= 19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}break;
}
}break;
}
} | # 0990, 2024-09-28 10:28:19, PP---------------- (11%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i;i<N;i++ <= 19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}break;
}
}
}break;
}
} | # 0991, 2024-09-28 10:28:51, PP-P--P---TTTTTT-- (22%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i;i<N;i++ <= 19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
break;
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0992, 2024-09-28 10:29:12, P---------TTTTTT-- (5%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i;i<N;i++ <= 19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
break;
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0993, 2024-09-28 10:29:33, PPPPP-P-P-TTTTTT-- (38%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i;i<N;i++ <= 19){
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}
}break;
}
} | # 0994, 2024-09-28 11:39:58, PPPPPPPPPPTTTTTTP- (61%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d=2;
while (true){
for(int i=-10;i<=N;i++){
if(N<2){
cout << "No prime factors for numbers less than 2.";
break;
}else{
if(N>1){
if(d*d>N){
cout << N <<" ";
break;
}else{
if (N % d == 0){
N/= d;
cout << d <<" ";
}else{
d+=1;
}
}
}
}
}break;
}
} |
# 0995, 2024-09-28 09:28:13, P--P--P---TTTTTTPP (27%)
#include<iostream>
using namespace std;
int main(){
int n, d, box;
cin >> n;
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(n>1){
if(d*d>n){
break;
}
else{
while(n%d!=0){
d+=1;
}
}
n/=d;
cout << d << " ";
}
} | # 0996, 2024-09-28 09:29:38, -PP--P-P-PTTTTTT-- (27%)
#include<iostream>
using namespace std;
int main(){
int n, d;
cin >> n;
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(n>1){
if(d*d>n){
break;
}
else{
while(n%d!=0){
d+=1;
}
}
n/=d;
cout << d << " ";
}
cout << d;
} | # 0997, 2024-09-28 09:34:11, PPPP-PPP-PTTTTTTPP (55%)
#include<iostream>
using namespace std;
int main(){
int n, d;
cin >> n;
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(n>1){
if(d*d>n){
}
else{
while(n%d!=0){
d+=1;
}
}
cout << d << " ";
n/=d;
}
} | # 0998, 2024-09-28 09:36:58, PPPP-PPP-P-TP---PP (61%)
#include<iostream>
using namespace std;
int main(){
long long n, d;
cin >> n;
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(n>1){
if(d*d>n){
}
else{
while(n%d!=0){
d+=1;
}
}
cout << d << " ";
n/=d;
}
} | # 0999, 2024-09-28 09:37:12, PPPP-PPP-P-TP---PP (61%)
#include<iostream>
using namespace std;
int main(){
long long n, d;
cin >> n;
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(n>1){
if(d*d>n){
}
else{
while(n%d!=0){
d+=1;
}
}
cout << d << " ";
n/=d;
}
} | # 1000, 2024-09-28 09:37:19, PPPP-PPP-P-TP---PP (61%)
#include<iostream>
using namespace std;
int main(){
long long n, d;
cin >> n;
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(n>1){
if(d*d>n){
}
else{
while(n%d!=0){
d+=1;
}
}
cout << d << " ";
n/=d;
}
} | # 1001, 2024-09-28 10:51:04, PPPP-PPP-P-TP----T (50%)
#include<iostream>
using namespace std;
int main(){
string N;
int d;
cin >> N;
unsigned long long n =stoull(N);
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(n>1){
if(d*d>n){
}
else{
while(n%d!=0){
d+=1;
}
}
cout << d << " ";
n/=d;
}
} | # 1002, 2024-09-28 11:29:58, PPPP-PPP-P-TPP--Px (61%)
#include<iostream>
using namespace std;
int main(){
string N;
int d;
cin >> N;
long long n =stoll(N);
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(n>1){
if(d*d>n){
}
else{
while(n%d!=0){
d+=1;
}
}
cout << d << " ";
n/=d;
}
} | # 1003, 2024-09-28 11:47:05, PPPP-PPP-P-TPP--Px (61%)
#include<iostream>
using namespace std;
int main(){
string N;
int d;
cin >> N;
long long n =stoll(N);
d=2;
if(n<2){
cout << "No prime factors for numbers less than 2." << endl;
}
while(n>1){
if(d*d>n){
}
else{
while(n%d!=0){
d+=1;
}
}
cout << d << " ";
n/=d;
}
} |
# 1004, 2024-09-28 10:07:39, PP-P--P----T----PP (33%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long n;
cin>>n;
int d = 2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
int i=2;
while(i<=n){
if(n%i==0){
cout<<i;
n/=i;
continue;
}
i++;
}
}
else{
d++;
}
if(n%d==0){
n/=d;
int i=2;
while(i<=d){
if(d%i==0){
cout<<i;
d/=i;
continue;
}
i++;
}
}
}
}
} | # 1005, 2024-09-28 10:09:25, PPPP--PP-P-TPP--PP (61%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long n;
cin>>n;
int d = 2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
int i=2;
while(i<=n){
if(n%i==0){
cout<<i<<" ";
n/=i;
continue;
}
i++;
}
}
else{
d++;
}
if(n%d==0){
n/=d;
int i=2;
while(i<=d){
if(d%i==0){
cout<<i<<" ";
d/=i;
continue;
}
i++;
}
}
}
}
} | # 1006, 2024-09-28 10:12:32, PPTPTTPTTTTTTTTTPP (33%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long n;
cin>>n;
int d = 2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
int i=2;
while(i<=n){
if(n%i==0){
cout<<i<<" ";
n/=i;
continue;
}
i++;
}
break;
}
else{
while(n%d==0){
n/=d;
int i=2;
while(i<=d){
if(d%i==0){
cout<<i<<" ";
d/=i;
continue;
}
i++;
}
}
}
d++;
}
}
} | # 1007, 2024-09-28 10:43:13, PPTPTTPTTTTTTTTTPP (33%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
long long n;
cin>>n;
int d = 2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else{
while(n>1){
if(d*d>n){
int i=2;
while(i<=n){
if(n%i==0){
cout<<i<<" ";
n/=i;
continue;
}
i++;
}
}
else if(n%d==0){
while(n%d==0){
n/=d;
int i=2;
while(i<=d){
if(d%i==0){
cout<<i<<" ";
d/=i;
continue;
}
i++;
}
}
}
d++;
}
}
} |
# 1008, 2024-09-28 12:56:35, -PPPPPPPPP-TP----- (55%)
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
long long lmod(long long a , long long b){
while(true){
if(a < b){
return a;
break;
}else{
a = (a/b);
}
}
}
int main()
{
double n = 0;
cin >> n;
double d = 2;
if (n < 2)
{
cout << "No prime factors for number less than 2.";
}
else
{
while (true)
{
if (n > 1)
{
if ( (d * d) > n)
{
cout << setprecision(15) << n << endl;
break;
}
else
{
while (true)
{
if (fmod(n,d) == 0)
{
n = (n/d);
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
break;
}
}
}
} | # 1009, 2024-09-28 12:56:46, -PPPPPPPPP-TP----- (55%)
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
long long lmod(long long a , long long b){
while(true){
if(a < b){
return a;
break;
}else{
a = (a/b);
}
}
}
int main()
{
double n = 0;
cin >> n;
double d = 2;
if (n < 2)
{
cout << "No prime factors for number less than 2.";
}
else
{
while (true)
{
if (n > 1)
{
if ( (d * d) > n)
{
cout << setprecision(15) << n << endl;
break;
}
else
{
while (true)
{
if (fmod(n,d) == 0)
{
n = (n/d);
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
break;
}
}
}
} | # 1010, 2024-09-28 15:13:36, -PPPPPPPPPTTP----- (55%)
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
long long lmod(long long a , long long b){
while(true){
if(a < b){
return a;
break;
}else{
a = (a/b);
}
}
}
int main()
{
long long n = 0;
cin >> n;
long long d = 2;
if (n < 2)
{
cout << "No prime factors for number less than 2.";
}
else
{
while (true)
{
if (n > 1)
{
if ( (d * d) > n)
{
cout << setprecision(15) << n << endl;
break;
}
else
{
while (true)
{
if (fmod(n,d) == 0)
{
n = (n/d);
cout << d << " ";
}
else
{
d += 1;
break;
}
}
}
}
else
{
break;
}
}
}
} |
# 1011, 2024-09-28 10:11:14, P---------xT----PP (16%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N;int d=2;
cin >> N;
while(N != d){
if( N < 2 ){
cout << "No prime factors for numbers less than 2.";
break;
}else{
if( N > 1 ){
if( d*d > N ){
cout << d << " ";
d += 1;
}else{
if( N%d == 0 ){
N /= d;
cout << N;
}else{
d += 1;
}
}
}
}
}
} | # 1012, 2024-09-28 11:06:15, -PP--P-P-PxTP----- (33%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N;int d=2;
cin >> N;
while(N != d){
if( N < 2 ){
cout << "No prime factors for numbers less than 2.";
break;
}else if( N > 1 ){
if( d*d > N ){
cout << d << " ";
d += 1;
}else{
if( N%d == 0 ){
cout << d << " ";
N /= d;
}else{
d += 1;
}
}
}{
}
}
cout << d;
} | # 1013, 2024-09-28 11:56:35, -PPPPPPPPPTTTTTT-- (50%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N, d=2;
cin >> N;
while(N != d){
if(N<2){
cout << "No prime factors for numbers less than 2.";
break;
}else{
if(N%d==0){
cout << d << " ";
N /= d;
}else{
d += 1;
}
}
}
cout << d;
} | # 1014, 2024-09-28 11:56:52, -PPPPPPPPPTTTTTT-- (50%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N, d=2;
cin >> N;
while(N != d){
if(N<2){
cout << "No prime factors for numbers less than 2.";
break;
}else{
if(N%d==0){
cout << d << " ";
N /= d;
}else{
d += 1;
}
}
}
cout << d;
} | # 1015, 2024-09-28 11:58:26, -PPPPPPPPPTTTTTT-- (50%)
#include <iostream>
using namespace std;
int main(){
int N, d=2;
cin >> N;
while(N != d){
if(N<2){
cout << "No prime factors for numbers less than 2.";
break;
}else{
if(N%d==0){
cout << d << " ";
N /= d;
}else{
d += 1;
}
}
}
cout << d;
} |
# 1016, 2024-09-28 10:35:17, P-P--P-P-PTTTTTTPP (38%)
#include<bits/stdc++.h>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2.";
}else {
while(N>1) {
if(d*d>N) {
for(int i=2 ; i<=sqrt(N) ;++i ) {
if(N%i==0) {
cout << i << " ";
}
}break;
}else {
while(N%d==0) {
N/=d;
cout << d << " ";
}
if(N%d!=0) {
d+=1;
}
}
}
}
} | # 1017, 2024-09-28 11:27:39, PPP--P-P-PTTTTTTPP (44%)
#include<bits/stdc++.h>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2.";
}else {
while(N>1) {
if(d*d>N) {
cout << d << " ";
break;
}else {
while(N%d==0) {
N/=d;
cout << d << " ";
}
if(N%d!=0) {
d+=1;
}
}
}
}
} | # 1018, 2024-09-28 11:29:36, PPP--P-P-PTTTTTTPP (44%)
#include<bits/stdc++.h>
using namespace std;
int main() {
int N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2.";
}else {
while(N>1) {
if(d*d>N) {
cout << d << " ";
break;
}else {
while(N%d==0) {
N/=d;
cout << d << " ";
}
d++;
}
}
}
} | # 1019, 2024-09-28 11:47:15, PPP--P-P-P--P---PP (50%)
#include<bits/stdc++.h>
using namespace std;
int main() {
long long N,d=2;
cin >> N;
if(N<2) {
cout << "No prime factors for numbers less than 2.";
}else {
while(N>1) {
if(d*d>N) {
cout << d << " ";
break;
}else {
while(N%d==0) {
N/=d;
cout << d << " ";
}
d++;
}
}
}
} |
# 1020, 2024-09-28 09:36:16, -PPPPPPPPPTTTTTT-- (50%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,d=2;
cin >> n;
if(n<2){
cout << "NO prime factors for numbers leses than 2";
}else {
while (true)
{
if(n>1){
if(d*d > n){
cout << n<< " " ;
break;
}else{
while (true){
if(n%d == 0){
n /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
}
}else{
return 0;
}
}
}
} | # 1021, 2024-09-28 09:42:12, -PPPPPPPPPTTTTTT-- (50%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,d=2;
cin >> n;
if(n<2){
cout << "NO prime factors for numbers leses than 2.";
}else {
while (true)
{
if(n>1){
if(d*d > n){
cout << n<< " " ;
break;
}else{
while (true){
if(n%d == 0){
n /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
}
}else{
return 0;
}
}
}
} | # 1022, 2024-09-28 10:15:20, -PPPPPPPPPTTTTTT-- (50%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,d=2;
cin >> n;
if(n<2){
cout << "NO prime factors for numbers leses than 2.";
}else {
while (true)
{
if(n>1){
if(d*d > n){
cout << n<< " " ;
break;
}else{
while (true){
if(n%d == 0){
n /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
}
}else{
return 0;
}
}
}
} | # 1023, 2024-09-28 10:39:10, -PPPPPPPPPTTTTTT-- (50%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,d=2;
for (int i = 0; i < 19; i++)
{
cin >> n;
break;
}
if(n<2){
cout << "NO prime factors for numbers leses than 2.";
}else {
while (true)
{
if(n>1){
if(d*d > n){
cout << n<< " " ;
break;
}else{
while (true){
if(n%d == 0){
n /= d;
cout << d << " ";
}else{
d+= 1;
break;
}
}
}
}else{
return 0;
}
}
}
} |
# 1024, 2024-09-28 15:01:46, PPPTTPT-TPTT-TTTPP (38%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
cin >> n;
long long int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(true)
{
if (n > 1)
{
while (true)
{
if (d * d > n)
{
while (true)
{
if(n==1)
return 0;
for (int i = 2; i <= n; i++)
{
bool check = true;
for (int j = 2; j < i; j++)
{
if(i == j )
continue;
// 5
if (i % j == 0)
{
check = false;
break;
}
}
if(check == false)
{
break;
}
if(i==n)
{
cout << n << " ";
return 0;
}
if(n%i == 0)
{
cout << i << " ";
n = n/i;
}
}
}
}
else
{
while(true)
{
if(n%d==0)
{
n /= d;
for (int i = 2; i <= d; i++)
{
bool check = true;
for (int j = 2; j < i; j++)
{
if(i == j )
continue;
// 5
if (i % j == 0)
{
check = false;
break;
}
}
if(check == false)
{
break;
}
if(i==d)
{
cout << d << " ";
break;
}
if(n%i == 0)
{
cout << i << " ";
d = d/i;
}
}
}
else
{
d+=1;
break;
}
}
}
}
}
else
{
break;
}
}
}
} | # 1025, 2024-09-28 15:06:54, PPPTTPT-TPTT-TTTPP (38%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
cin >> n;
long long int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(true)
{
if (n > 1)
{
while (true)
{
if (d * d > n)
{
while (true)
{
if(n==1)
return 0;
for (int i = 2; i <= n; i++)
{
bool check = true;
for (int j = 2; j < i; j++)
{
if(i == j )
continue;
// 5
if (i % j == 0)
{
check = false;
break;
}
}
if(check == false)
{
break;
}
if(i==n)
{
cout << n << " ";
return 0;
}
if(n%i == 0)
{
cout << i << " ";
n = n/i;
}
}
}
}
else
{
while(true)
{
if(n%d==0)
{
n /= d;
int z = d;
for (int i = 2; i <= z; i++)
{
bool check = true;
for (int j = 2; j < i; j++)
{
if(i == j )
continue;
// 5
if (i % j == 0)
{
check = false;
break;
}
}
if(check == false)
{
break;
}
if(i==z)
{
cout << z << " ";
break;
}
if(n%i == 0)
{
cout << i << " ";
z = z/i;
}
}
}
else
{
d+=1;
break;
}
}
}
}
}
else
{
break;
}
}
}
} | # 1026, 2024-09-28 15:13:51, PPPTTPTPTPTTPTTTPP (50%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
cin >> n;
long long int d = 2;
if (n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(true)
{
if (n > 1)
{
while (true)
{
if (d * d > n)
{
while (true)
{
if(n==1)
return 0;
for (int i = 2; i <= n; i++)
{
bool check = true;
for (int j = 2; j < i; j++)
{
if(i == j )
continue;
// 5
if (i % j == 0)
{
check = false;
break;
}
}
if(check == false)
{
break;
}
if(i==n)
{
cout << n << " ";
return 0;
}
if(n%i == 0)
{
cout << i << " ";
n = n/i;
}
}
}
}
else
{
while(true)
{
if(n%d==0)
{
n /= d;
int z = d;
for (int i = 2; i <= z; i++)
{
bool check = true;
for (int j = 2; j < i; j++)
{
if(i == j )
continue;
// 5
if (i % j == 0)
{
check = false;
break;
}
}
if(check == false)
{
continue;
}
if(i==z)
{
cout << z << " ";
break;
}
if(z%i == 0)
{
cout << i << " ";
z = z/i;
}
}
}
else
{
d+=1;
break;
}
}
}
}
}
else
{
break;
}
}
}
} |
# 1027, 2024-09-28 09:21:23, TTTTTTxTTTTTTTTTTT (0%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,d;
d=2;
cin >> N;
if(N<2)cout << "No prime factors for numbers less than 2.";
while(true){
if(N>1){
if(d*d>N){
for(int i=2;i<N;){
if(N/i==1){
cout << i << " " << N;
}
else if(N%i==0){
cout << i << " ";
N /= i;
}
else{
i++;
}
}
}
else if(N%d==0){
for(int i=2;i<d;){
if(d/i==1){
cout << i << " " << d;
}
else if(d%i==0){
cout << i << " ";
d /= i;
}
else{
i++;
}
}
}
else{
d += 1;
}
}
}
} | # 1028, 2024-09-28 09:21:43, TTTTTTxTTTTTTTTTTT (0%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,d;
d=2;
cin >> N;
if(N<2)cout << "No prime factors for numbers less than 2.";
while(true){
if(N>1){
if(d*d>N){
for(int i=2;i<N;){
if(N/i==1){
cout << i << " " << N;
}
else if(N%i==0){
cout << i << " ";
N /= i;
}
else{
i++;
}
}
}
else if(N%d==0){
for(int i=2;i<d;){
if(d/i==1){
cout << i << " " << d;
}
else if(d%i==0){
cout << i << " ";
d /= i;
}
else{
i++;
}
}
}
else{
d += 1;
}
}
}
} | # 1029, 2024-09-28 09:23:11, TTTTTTTTTTTTTTTTTT (0%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,d;
d=2;
cin >> N;
if(N<2)cout << "No prime factors for numbers less than 2.";
while(true){
if(N>1){
if(d*d>N){
for(int i=2;i<N;){
if(N/i==1){
cout << i << " " << N;
break;
}
else if(N%i==0){
cout << i << " ";
N /= i;
}
else{
i++;
}
}
}
else if(N%d==0){
for(int i=2;i<d;){
if(d/i==1){
cout << i << " " << d;
break;
}
else if(d%i==0){
cout << i << " ";
d /= i;
}
else{
i++;
}
}
}
else{
d += 1;
}
}
}
} | # 1030, 2024-09-28 09:26:57, PTTTTTTTTTTTTTTTPP (16%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,d;
d=2;
cin >> N;
if(N<2)cout << "No prime factors for numbers less than 2.";
while(N>1){
if(d*d>N){
for(int i=2;i<N;){
if(N/i==1){
cout << i << " " << N;
break;
}
else if(N%i==0){
cout << i << " ";
N /= i;
}
else{
i++;
}
}
}
else if(N%d==0){
for(int i=2;i<d;){
if(d/i==1){
cout << i << " " << d;
break;
}
else if(d%i==0){
cout << i << " ";
d /= i;
}
else{
i++;
}
}
}
else{
d += 1;
}
}
} | # 1031, 2024-09-28 09:32:58, PP-P--P---TTTTTTPP (33%)
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,d;
d=2;
cin >> N;
if(N<2)cout << "No prime factors for numbers less than 2.";
while(N>1){
if(d*d>N){
for(int i=2;i<N;){
if(N/i==1){
//cout << i << " " << N;
break;
}
else if(N%i==0){
cout << i << " ";
N /= i;
}
else{
i++;
}
}
cout << N;
break;
}
else if(N%d==0){
for(int i=2;i<d;){
if(d/i==1){
//cout << i << " " << d;
break;
}
else if(d%i==0){
cout << i << " ";
d /= i;
}
else{
i++;
}
}
cout << d;
break;
}
else{
d += 1;
}
}
} | # 1032, 2024-09-28 11:06:23, P-P--P-P-P--P---PP (44%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N,d;
d=2;
cin >> N;
if(2>N)cout << "No prime factors for numbers less than 2.";
while(N>1){
// cout << "in loop\n";
if(d*d>N){
cout << "in 2\n";
for(int i=2;i<d;){
// cout << "In for\n";
if(d/i==1){
cout << i << " " << d;
break;
}
else if(d%i==0){
cout << i << " ";
d /= i;
}
else{
i++;
}
}
if(d/d==1){
cout << d;
break;
}
}
else if(N%d==0){
// cout << "in 1\n";
for(int i=2;i<N;){
// cout << "In for\n";
if(N/i==1){
cout << i << " " << N;
break;
}
else if(N%i==0){
cout << i << " ";
N /= i;
}
else{
i++;
}
}
if(N/N==1){
cout << N;
break;
}
}
else{
d += 1;
}
}
} | # 1033, 2024-09-28 11:09:04, P-P--P-P-P--P---PP (44%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N,d;
d=2;
cin >> N;
if(2>N)cout << "No prime factors for numbers less than 2.";
while(N>1){
// cout << "in loop\n";
if(d*d>N){
// cout << "in 2\n";
for(int i=2;i<d;){
// cout << "In for\n";
if(d/i==1){
cout << i << " " << d;
break;
}
else if(d%i==0){
cout << i << " ";
d /= i;
}
else{
i++;
}
}
if(d/d==1){
//cout << d;
break;
}
}
else if(N%d==0){
// cout << "in 1\n";
for(int i=2;i<N;){
// cout << "In for\n";
if(N/i==1){
cout << i << " " << N;
break;
}
else if(N%i==0){
cout << i << " ";
N /= i;
}
else{
i++;
}
}
if(N/N==1){
cout << N;
break;
}
}
else{
d += 1;
}
}
} | # 1034, 2024-09-28 11:09:31, P---------------PP (16%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N,d;
d=2;
cin >> N;
if(2>N)cout << "No prime factors for numbers less than 2.";
} | # 1035, 2024-09-28 11:09:52, P-P--P-P-P--P---PP (44%)
#include <bits/stdc++.h>
using namespace std;
int main(){
long long N,d;
d=2;
cin >> N;
if(2>N)cout << "No prime factors for numbers less than 2.";
while(N>1){
// cout << "in loop\n";
if(d*d>N){
// cout << "in 2\n";
for(int i=2;i<d;){
// cout << "In for\n";
if(d/i==1){
cout << i << " " << d;
break;
}
else if(d%i==0){
cout << i << " ";
d /= i;
}
else{
i++;
}
}
if(d/d==1){
//cout << d;
break;
}
}
else if(N%d==0){
// cout << "in 1\n";
for(int i=2;i<N;){
// cout << "In for\n";
if(N/i==1){
cout << i << " " << N;
break;
}
else if(N%i==0){
cout << i << " ";
N /= i;
}
else{
i++;
}
}
if(N/N==1){
cout << N;
break;
}
}
else{
d += 1;
}
}
} |
# 1036, 2024-09-28 10:08:22, -T-TT-T-T-TT-TTT-- (0%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
bool flagg =true;
cin >> n;
int d = 2;
if (n < 2)
cout << "No prime factors for numbers less than 2.";
else
{
con:
while (n > 1)
{
if (d * d > n)
{
for (int i = 2; i < ceil(sqrt(n)); ++i)
{
if (n % i == 0)
{
cout << i << " ";
flagg = false;
}
}
}
else
{
while(n % d == 0)
{
n /= d;
cout << d<<" ";
}
if (n % d != 0)
{
d += 1;
goto con;
}
}
}
}
if(flagg) cout<<n;
return 0;
} | # 1037, 2024-09-28 10:09:19, PTPTTPTPTPTTPTTTPP (44%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
cin >> n;
int d = 2;
if (n < 2)
cout << "No prime factors for numbers less than 2.";
else
{
con:
while (n > 1)
{
if (d * d > n)
{
for (int i = 2; i <=n; ++i)
{
if (n % i == 0)
{
cout << i << " ";
}
}
}
else
{
while(n % d == 0)
{
n /= d;
cout << d<<" ";
}
if (n % d != 0)
{
d += 1;
goto con;
}
}
}
}
return 0;
} | # 1038, 2024-09-28 10:48:29, Compilation error (0%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
bool prime = true;
cin >> n;
int d = 2;
if (n < 2)
cout << "No prime factors for numbers less than 2.";
else
{
con:
while (n > 1)
{
if (d * d > n)
{
for (int i = 2; i <ceil(sqrt(n)); ++i)
{
if (n % i == 0)
{
cout << i << " ";
prime = false;
}
}
}
else
{
while(n % d == 0)
{
n /= d;
cout << d<<" ";#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
bool prime = true;
cin >> n;
int d = 2;
if (n < 2)
cout << "No prime factors for numbers less than 2.";
else
{
con:
while (n > 1)
{
if (d * d > n)
{
for (int i = 2; i <ceil(sqrt(n)); ++i)
{
if (n % i == 0)
{
cout << i << " ";
prime = false;
}
}
}
else
{
while(n % d == 0)
{
n /= d;
cout << d<<" ";
}
if (n % d != 0)
{
d += 1;
goto con;
}
}
}
}
if(prime) cout<<n;
return 0;
}
}
if (n % d != 0)
{
d += 1;
goto con;
}
}
}
}
if(prime) cout<<n;
return 0;
}#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
bool prime = true;
cin >> n;
int d = 2;
if (n < 2)
cout << "No prime factors for numbers less than 2.";
else
{
con:
while (n > 1)
{
if (d * d > n)
{
for (int i = 2; i <ceil(sqrt(n)); ++i)
{
if (n % i == 0)
{
cout << i << " ";
prime = false;
}
}
}
else
{
while(n % d == 0)
{
n /= d;
cout << d<<" ";
}
if (n % d != 0)
{
d += 1;
goto con;
}
}
}
}
if(prime) cout<<n;
return 0;
} | # 1039, 2024-09-28 10:48:44, -T-TT-T-T-TT-TTT-- (0%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
bool prime = true;
cin >> n;
int d = 2;
if (n < 2)
cout << "No prime factors for numbers less than 2.";
else
{
con:
while (n > 1)
{
if (d * d > n)
{
for (int i = 2; i <ceil(sqrt(n)); ++i)
{
if (n % i == 0)
{
cout << i << " ";
prime = false;
}
}
}
else
{
while(n % d == 0)
{
n /= d;
cout << d<<" ";
}
if (n % d != 0)
{
d += 1;
goto con;
}
}
}
}
if(prime) cout<<n;
return 0;
} | # 1040, 2024-09-28 10:49:08, PTPTTPTPTPTTPTTTPP (44%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
cin >> n;
int d = 2;
if (n < 2)
cout << "No prime factors for numbers less than 2.";
else
{
con:
while (n > 1)
{
if (d * d > n)
{
for (int i = 2; i <=n; ++i)
{
if (n % i == 0)
{
cout << i << " ";
}
}
}
else
{
while(n % d == 0)
{
n /= d;
cout << d<<" ";
}
if (n % d != 0)
{
d += 1;
goto con;
}
}
}
}
return 0;
} | # 1041, 2024-09-28 11:44:22, -P-PTPPPTPTPTTTT-- (38%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
cin >> n;
int d = 2;
bool prime = true;
for (int i = 2; i < ceil(sqrt(n)); ++i)
{
if (n % i == 0)
{
prime = false;
}
}
if (prime)
cout << n;
else
{
if (n < 2)
cout << "No prime factors for numbers less than 2.";
else
{
con:
while (n > 1)
{
if (d * d > n)
{
for (int i = 2; i <=n; ++i)
{
if (n % i == 0)
{
cout << i << " ";
}
}
}
else
{
while(n % d == 0)
{
n /= d;
cout << d<<" ";
}
if (n % d != 0)
{
d += 1;
goto con;
}
}
}
}
}
return 0;
} | # 1042, 2024-09-28 11:53:56, PTPTTPTPTPTTPTTTPP (44%)
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long int n;
cin >> n;
int d = 2;
if (n < 2)
cout << "No prime factors for numbers less than 2.";
else
{
con:
while (n > 1)
{
if (d * d > n)
{
for (int i = 2; i <=n; ++i)
{
if (n % i == 0)
{
cout << i << " ";
}
}
}
else
{
while(n % d == 0)
{
n /= d;
cout << d<<" ";
}
if (n % d != 0)
{
d += 1;
goto con;
}
}
}
}
return 0;
} |
# 1043, 2024-09-28 09:15:53, --P------P-------- (11%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2";
}
else
{
while(N>1)
{
if(d*d > N)
cout << N;
break;
}
while(N% d == 0)
{
N/=d;
cout << d<<" ";
}
}
} | # 1044, 2024-09-28 09:23:59, -P---------------- (5%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2";
}
else
{
if( N >1)
{
if(d*d > N)
{
cout << d << " ";
}
else
{
if(N% d == 0)
{
N /= d;
cout << d << " ";
}else
{
d+=1;
}
}
}
}
} | # 1045, 2024-09-28 09:26:36, -PP--P-P-PTTTTTT-- (27%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2";
}
else
{
while( N >1)
{
if(d*d > N)
{
cout << d << " ";
break;
}
else
{
if(N% d == 0)
{
N /= d;
cout << d << " ";
}else
{
d+=1;
}
}
}
}
} | # 1046, 2024-09-28 09:33:15, -PP--P-P-PTTTTTT-- (27%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2";
}
else
{
while( N >1)
{
if(d*d > N)
{
cout << d << " ";
break;
}
else
{
if(N% d == 0)
{
N /= d;
cout << d << " ";
}else
{
d+=1;
}
}
}
}
} | # 1047, 2024-09-28 09:33:36, --P------P-------- (11%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2";
}
else
{
while(N>1)
{
if(d*d > N)
cout << N;
break;
}
while(N% d == 0)
{
N/=d;
cout << d<<" ";
}
}
} | # 1048, 2024-09-28 09:41:35, --P------P-------- (11%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2.";
}
else
{
while(N>1)
{
if(d*d > N)
cout << N;
break;
}
while(N% d == 0)
{
N/=d;
cout << d<<" ";
}
}
} | # 1049, 2024-09-28 09:41:51, -PP--P-P-PTTTTTT-- (27%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2.";
}
else
{
while( N >1)
{
if(d*d > N)
{
cout << d << " ";
break;
}
else
{
if(N% d == 0)
{
N /= d;
cout << d << " ";
}else
{
d+=1;
}
}
}
}
} | # 1050, 2024-09-28 09:47:15, -PP--P-P-PTTTTTT-- (27%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2";
}
else
{
while( N >=1)
{
if(d*d > N)
{
cout << d << " ";
break;
}
else
{
if(N% d == 0)
{
N /= d;
cout << d << " ";
}else
{
d+=1;
}
}
}
}
} | # 1051, 2024-09-28 09:47:22, -PP--P-P-PTTTTTT-- (27%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2.";
}
else
{
while( N >=1)
{
if(d*d > N)
{
cout << d << " ";
break;
}
else
{
if(N% d == 0)
{
N /= d;
cout << d << " ";
}else
{
d+=1;
}
}
}
}
} | # 1052, 2024-09-28 09:47:33, -PP--P-P-PTTTTTT-- (27%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2.";
}
else
{
while( N >=1)
{
if(d*d > N)
{
cout << d << " ";
break;
}
else
{
if(N% d == 0)
{
N /= d;
cout << d << " ";
}else
{
d+=1;
}
}
}
}
} | # 1053, 2024-09-28 09:55:27, -PP--P-P-P-------- (27%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2.";
}
else
{
if(N%2 != 1)
{
while( N >=1)
{
if(d*d > N)
{
cout << d << " ";
break;
}
else
{
if(N% d == 0)
{
N /= d;
cout << d << " ";
}else
{
d+=1;
}
}
}
}
else
{
cout<< "N";
}
}
} | # 1054, 2024-09-28 09:56:17, -PPP-PPP-P-------- (38%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2.";
}
else
{
if(N%2 != 1)
{
while( N >=1)
{
if(d*d > N)
{
cout << d << " ";
break;
}
else
{
if(N% d == 0)
{
N /= d;
cout << d << " ";
}else
{
d+=1;
}
}
}
}
else
{
cout<< N;
}
}
} | # 1055, 2024-09-28 09:57:58, -P-PTTPTT--------- (16%)
#include <iostream>
using namespace std;
int main()
{
int d, N;
cin >> N;
d = 2;
if (N < 2)
{
cout << "No prime factor for numbers less than 2.";
}
else
{
if (N % 2 != 1)
{
while (N >= 1)
{
if (d * d > N)
{
cout << d << " ";
break;
}
else
{
if (N % 2 != 1)
{
cout << N;
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
}
}
}
}
}
else
{
cout << N;
}
}
} | # 1056, 2024-09-28 09:58:28, -P-P--P----------- (16%)
#include <iostream>
using namespace std;
int main()
{
int d, N;
cin >> N;
d = 2;
if (N < 2)
{
cout << "No prime factor for numbers less than 2.";
}
else
{
if (N % 2 != 1)
{
while (N >= 1)
{
if (d * d > N)
{
cout << d << " ";
break;
}
else
{
if (N % 2 != 1)
{
cout << N;
break;
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
}
}
}
}
}
else
{
cout << N;
}
}
} | # 1057, 2024-09-28 11:41:25, -P-P--P----------- (16%)
#include <iostream>
using namespace std;
int main()
{
int d, N;
cin >> N;
d = 2;
if (N < 2)
{
cout << "No prime factor for numbers less than 2.";
}
else
{
if (N % 2 != 1)
{
if(N > 1)
{
while(d * d > N)
{
if (d * d > N)
{
cout << d << " ";
break;
}
else
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
}
}
}
}
}
else
{
cout << N;
}
}
} | # 1058, 2024-09-28 11:45:19, -PP--P-P-PTTTTTT-- (27%)
#include<iostream>
using namespace std;
int main()
{
int d,N;
cin >> N;
d = 2;
if( N < 2)
{
cout<< "No prime factor for numbers less than 2.";
}
else
{
while( N >=1)
{
if(d*d > N)
{
cout << d << " ";
break;
}
else
{
if(N% d == 0)
{
while(N% d == 0)
{
N /= d;
cout << d << " ";
break;
}
}
else if( N% d != 0)
{
d+=1;
}
else
{
cout << "N" << " ";
break;
}
}
}
}
} | # 1059, 2024-09-28 11:57:48, -PP--P-P-PTTTTTT-- (27%)
#include <iostream>
using namespace std;
int main()
{
int d, N;
cin >> N;
d = 2;
if (N < 2)
{
cout << "No prime factor for numbers less than 2.";
}
else
{
while(N > 1)
{
if (d * d > N)
{
cout << d << " ";
break;
}
else
{
if (N % d == 0)
{
N /= d;
cout << d << " ";
}
else
{
d += 1;
}
}
}
}
} |
# 1060, 2024-09-28 09:31:55, PTPTTPTPTPTTTTTTPP (38%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n > 1){//yes n>1
if(d*d > n){ // yes d*d > n
//cout prime number " " n
cout << n <<" "; // correct
}else{ // no d*d > n
while(n%d == 0){ //' yes N%d == 0
n /= d;
//cout prime number d
cout << d <<" ";
}
//no N%d == 0
//cout << "no nd";
}
//cout << "break ma while nok";
d+=1; //correct
}// no while
// not n > 1
//case 1000000007 if fault
// 2347821953524590300 is fault
}
} | # 1061, 2024-09-28 11:10:00, P-TTTTTTTTTTTTTTPP (16%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n>1){
if(d*d > n){
cout << n;
}
while(n%d == 0){
n /= d;
cout << d;
d+=1;
}
}
//no while
}
} | # 1062, 2024-09-28 11:15:56, PTPTTTTTTPTTTTTTPP (27%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n > 1){//yes n>1
if(d*d > n){ // yes d*d > n
//cout prime number " " n
cout << n <<" "; // correct
}else{ // no d*d > n
while(n%d == 0){ //' yes N%d == 0
n /= d;
//cout prime number d
cout << d <<" ";
}
//no N%d == 0
//cout << "no nd";
}
//cout << "break ma while nok";
if(n%d == 0){
d+=1;
}
}// no while
// not n > 1
//case 1000000007 if fault
// 2347821953524590300 is fault
}
} | # 1063, 2024-09-28 11:16:19, PTPTTTTTTPTTTTTTPP (27%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n > 1){//yes n>1
if(d*d > n){ // yes d*d > n
//cout prime number " " n
cout << n <<" "; // correct
}else{ // no d*d > n
while(n%d == 0){ //' yes N%d == 0
n /= d;
//cout prime number d
cout << d <<" ";
}
//no N%d == 0
//cout << "no nd";
if(n%d == 0){
d+=1;
}
}
//cout << "break ma while nok";
}// no while
// not n > 1
//case 1000000007 if fault
// 2347821953524590300 is fault
}
} | # 1064, 2024-09-28 11:16:55, PTPTTTTTTPTTTTTTPP (27%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n > 1){//yes n>1
if(d*d > n){ // yes d*d > n
//cout prime number " " n
cout << n <<" "; // correct
}else{ // no d*d > n
while(n%d == 0){ //' yes N%d == 0
n /= d;
//cout prime number d
cout << d <<" ";
}
//no N%d == 0
//cout << "no nd";
d;
}
//cout << "break ma while nok";
if(n%d == 0){
d+=1;
}
}// no while
// not n > 1
//case 1000000007 if fault
// 2347821953524590300 is fault
}
} | # 1065, 2024-09-28 11:22:09, PT-P--P---------PP (27%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n > 1){//yes n>1
if(d*d > n){ // yes d*d > n
//cout prime number " " n
cout << n <<" "; // correct
}else{ // no d*d > n
while(n%d == 0){ //' yes N%d == 0
n /= d;
//cout prime number d
cout << d <<" ";
}
if(n%d != 0){
d+=1;
cout << n;
break;
}
//no N%d == 0
//cout << "no nd";
}
//cout << "break ma while nok";
}// no while
}
} | # 1066, 2024-09-28 11:38:02, PTPTTPTPTPTTTTTTPP (38%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n > 1){//yes n>1
if(d*d > n){ // yes d*d > n
//cout prime number " " n
cout << n <<" "; // correct
}else{ // no d*d > n
while(n%d == 0){ //' yes N%d == 0
n /= d;
//cout prime number d
cout << d <<" ";
}
//no N%d == 0
//cout << "no nd";
}
//cout << "break ma while nok";
d+=1; //correct
}// no while
// not n > 1
//case 1000000007 if fault
// 2347821953524590300 is fault
}
} | # 1067, 2024-09-28 11:49:33, PTPTTTTTTPTTTTTTPP (27%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n > 1){//yes n>1
if(d*d > n){ // yes d*d > n
//cout prime number " " n
cout << n <<" "; // correct
}else{ // no d*d > n
while(n%d == 0){ //' yes N%d == 0
n /= d;
//cout prime number d
cout << d <<" ";
}
}
}// no while
d+=1;
}
} | # 1068, 2024-09-28 11:53:31, PTPTTPTPTPTTTTTTPP (38%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n>1){
if(d*d > n){
cout << n << " ";
}
else{
while(n%d == 0){
n /= d;
cout << d << " ";
}
d += 1;
}
}
}
} | # 1069, 2024-09-28 11:54:13, PTPTTPTPTPTTTTTTPP (38%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n>1){
if(d*d > n){
cout << n << " ";
}
else{
while(n%d == 0){
n /= d;
cout << d << " ";
}
}d += 1;
}
}
} | # 1070, 2024-09-28 11:54:27, PTPTTTTTTPTTTTTTPP (27%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n>1){
if(d*d > n){
cout << n << " ";
}
else{
while(n%d == 0){
n /= d;
cout << d << " ";
}
}
}d += 1;
}
} | # 1071, 2024-09-28 11:59:23, PPP------P------PP (33%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}else{ //n<2
while(n>1){
if(d*d > n){
cout << n << " ";
}
else{
while(n%d == 0){
n /= d;
cout << d << " ";
}
}
d += 1;
break;
}
}
} |
# 1072, 2024-09-28 09:16:13, ------------------ (0%)
#include <bits/stdc++.h>
using namespace std ;
int main () {
int n ;
int i = 0;
cin >> n ;
string number = to_string(n) ;
if (number.length() <= 19){
int d = 2 ;
if (n > 2){
cout << "No prime factors for numbers less than 2." ;
} else {
while (n > 1) {
if (d*d > n){
while (d * d <= n){
if (n % d == 0){
n /= d;
while (i < n){
while (i % d == 0){
cout << i << " " ;
}
i++ ;
}
} else {
d += 1 ;
}
}
} else {
while (i < n){
while (i % n == 0){
cout << i << " " ;
}
i++ ;
}
}
}
}
}
} | # 1073, 2024-09-28 09:16:52, PTTTTTTTTTTTTTTTPP (16%)
#include <bits/stdc++.h>
using namespace std ;
int main () {
int n ;
int i = 0;
cin >> n ;
string number = to_string(n) ;
if (number.length() <= 19){
int d = 2 ;
if (n < 2){
cout << "No prime factors for numbers less than 2." ;
} else {
while (n > 1) {
if (d*d > n){
while (d * d <= n){
if (n % d == 0){
n /= d;
while (i < n){
while (i % d == 0){
cout << i << " " ;
}
i++ ;
}
} else {
d += 1 ;
}
}
} else {
while (i < n){
while (i % n == 0){
cout << i << " " ;
}
i++ ;
}
}
}
}
}
} | # 1074, 2024-09-28 10:55:30, Compilation error (0%)
#include <bits/stdc++.h>
using namespace std ;
int main () {
int n ;
int i = 2;
cin >> n ;
string number = to_string(n) ;
if (number.length() <= 19){
int d = 2 ;
if (n < 2){
cout << "No prime factors for numbers less than 2." ;
} else {
while (n > 1) {
if (d*d > n){
while (d * d <= n){
if (n % d == 0){
while (n % d == 0){
n /= d;
while (i < n){
while (d % i == 0){
cout << i << " " ;
d /= i
}
i++ ;
}
}
} else {
d += 1 ;
}
}
} else {
while (i < n){
while (n % i == 0){
cout << i << " " ;
n /= i ;
}
i++ ;
}
}
}
}
}
} | # 1075, 2024-09-28 10:55:51, PTPTTPTPTPTTTTTTPP (38%)
#include <bits/stdc++.h>
using namespace std ;
int main () {
int n ;
int i = 2;
cin >> n ;
string number = to_string(n) ;
if (number.length() <= 19){
int d = 2 ;
if (n < 2){
cout << "No prime factors for numbers less than 2." ;
} else {
while (n > 1) {
if (d*d > n){
while (d * d <= n){
if (n % d == 0){
while (n % d == 0){
n /= d;
while (i < n){
while (d % i == 0){
cout << i << " " ;
d /= i ;
}
i++ ;
}
}
} else {
d += 1 ;
}
}
} else {
while (i < n){
while (n % i == 0){
cout << i << " " ;
n /= i ;
}
i++ ;
}
}
}
}
}
} | # 1076, 2024-09-28 10:56:44, PTTTTTTTTPTTTTTTPP (22%)
#include <bits/stdc++.h>
using namespace std ;
int main () {
int n ;
int i = 2;
cin >> n ;
string number = to_string(n) ;
if (number.length() <= 19){
int d = 2 ;
if (n < 2){
cout << "No prime factors for numbers less than 2." ;
} else {
while (n > 1) {
if (d*d > n){
while (d * d <= n){
if (n % d == 0){
while (n % d == 0){
n /= d;
while (i < sqrt(n)){
while (d % i == 0){
cout << i << " " ;
d /= i ;
}
i++ ;
}
}
} else {
d += 1 ;
}
}
} else {
while (i < sqrt(n)){
while (n % i == 0){
cout << i << " " ;
n /= i ;
}
i++ ;
}
}
}
}
}
} | # 1077, 2024-09-28 10:57:12, PTPTTPTPTPTTTTTTPP (38%)
#include <bits/stdc++.h>
using namespace std ;
int main () {
int n ;
int i = 2;
cin >> n ;
string number = to_string(n) ;
if (number.length() <= 19){
int d = 2 ;
if (n < 2){
cout << "No prime factors for numbers less than 2." ;
} else {
while (n > 1) {
if (d*d > n){
while (d * d <= n){
if (n % d == 0){
while (n % d == 0){
n /= d;
while (i < n){
while (d % i == 0){
cout << i << " " ;
d /= i ;
}
i++ ;
}
}
} else {
d += 1 ;
}
}
} else {
while (i < n){
while (n % i == 0){
cout << i << " " ;
n /= i ;
}
i++ ;
}
}
}
}
}
} | # 1078, 2024-09-28 11:07:37, PxTxTTxTTTTTTTTTPP (16%)
#include <bits/stdc++.h>
using namespace std ;
int main () {
int n ;
int i = 0;
cin >> n ;
int arr[25] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97} ;
string number = to_string(n) ;
if (number.length() <= 19){
int d = 2 ;
if (n < 2){
cout << "No prime factors for numbers less than 2." ;
} else {
while (n > 1) {
if (d*d <= n){
while (d * d <= n){
if (n % d == 0){
while (n % d == 0){
n /= d;
while (i < 25){
while (d % arr[i] == 0){
cout << arr[i] << " " ;
d /= arr[i] ;
}
i++ ;
}
cout << d;
}
} else {
d += 1 ;
}
}
} else {
while (i < 25){
while (n % i == 0){
cout << arr[i] << " " ;
n /= arr[i] ;
}
i++ ;
}
cout << n ;
}
}
}
}
} | # 1079, 2024-09-28 11:39:28, PxPTTTTTTPTTTTTTPP (27%)
#include <bits/stdc++.h>
using namespace std ;
int main () {
int n ;
int i = 0;
int nub = 0;
cin >> n ;
int arr[25] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97} ;
string number = to_string(n) ;
if (number.length() <= 19){
int d = 2 ;
int e = 2 ;
if (n < 2){
cout << "No prime factors for numbers less than 2." ;
} else {
while (n > 1) {
if (d*d <= n){
while (d * d <= n){
if (n % d == 0){
while (n % d == 0){
n /= d;
while (i < 25){
while (d % arr[i] == 0){
cout << arr[i] << " " ;
d /= arr[i] ;
nub++ ;
if (d == 1){
break ;
}
}
i++ ;
if (d < arr[i] || d == 1){
break ;
}
}
i = 0 ;
d = e ;
}
} else {
e += 1 ;
}
}
} else {
while (i < 25){
while (n % i == 0){
cout << arr[i] << " " ;
n /= arr[i] ;
if (n == 1){
break ;
}
}
i++ ;
}
cout << n ;
}
}
}
}
} | # 1080, 2024-09-28 11:43:25, PxPxTTxTTPTTTTTTPP (27%)
#include <bits/stdc++.h>
using namespace std ;
int main () {
int n ;
int i = 0;
int nub = 0;
cin >> n ;
int arr[25] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97} ;
string number = to_string(n) ;
if (number.length() <= 19){
int d = 2 ;
int e = 2 ;
if (n < 2){
cout << "No prime factors for numbers less than 2." ;
} else {
while (n > 1) {
if (e * e <= n){
while (e * e <= n){
if (n % e == 0){
while (n % d == 0){
n /= d;
while (i < 25){
while (d % arr[i] == 0){
cout << arr[i] << " " ;
d /= arr[i] ;
nub++ ;
if (d == 1){
break ;
}
}
i++ ;
if (d < arr[i] || d == 1){
break ;
}
}
i = 0 ;
d = e ;
}
} else {
e += 1 ;
}
}
} else {
while (i < 25){
while (n % i == 0){
cout << arr[i] << " " ;
n /= arr[i] ;
if (n == 1){
break ;
}
}
i++ ;
}
cout << n ;
}
}
}
}
} |
# 1081, 2024-09-28 14:03:42, P-TxTTxTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
string result = "";
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while(N > 1){
if(d * d > N){
cout << N;
while(N % 2 == 0){
cout << "2 ";
N = N / 2;
}
while(N % 3 == 0){
cout << "3 ";
N = N / 3;
}
while(N % 5 == 0){
cout << "5 ";
N = N / 5;
}
while(N % 7 == 0){
cout << "7 ";
N = N / 7;
}
}else if(N % d == 0){
while(N % d == 0){
N /= d;
while(d % 2 == 0){
cout << "2 ";
d = d / 2;
}
while(d % 3 == 0){
cout << "3 ";
d = d / 3;
}
while(d % 5 == 0){
cout << "5 ";
d = d / 5;
}
while(d % 7 == 0){
cout << "7 ";
d = d / 7;
}
}
}else{
d += 1;
continue;
}
}
}
} | # 1082, 2024-09-28 14:16:39, P-Px-PxP-PTTTTTTPP (38%)
#include<bits/stdc++.h>
using namespace std;
bool isprime(int n){
if(n <= 1) return false;
if(n == 0) return false;
if(n % 2 == 0) return false;
for(int i = 3; i < sqrt(n); i+= 2){
if(n % i == 0){
return false;
}
}
return true;
}
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}else{
while(N > 1){
if(d * d > N){
cout << N;
while(N % 2 == 0){
cout << "2 ";
N = N / 2;
}
while(N % 3 == 0){
cout << "3 ";
N = N / 3;
}
while(N % 5 == 0){
cout << "5 ";
N = N / 5;
}
while(N % 7 == 0){
cout << "7 ";
N = N / 7;
}
}else if(N % d == 0){
while(N % d == 0){
N /= d;
int spare_d = d;
while(spare_d % 2 == 0){
cout << "2 ";
spare_d = spare_d / 2;
}
while(spare_d % 3 == 0){
cout << "3 ";
spare_d = spare_d / 3;
}
while(spare_d % 5 == 0){
cout << "5 ";
spare_d = spare_d / 5;
}
while(spare_d % 7 == 0){
cout << "7 ";
spare_d = spare_d / 7;
}
}
d += 1;
continue;
}else{
d += 1;
continue;
}
}
}
} |
# 1083, 2024-09-28 10:40:07, PP-P--P---TTTTTTPP (33%)
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string ans,str;
int n,k=2;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
start:
if(n > 1)
{
if(d*d > n)
{
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
}
else
{
modD:
if(n % d == 0)
{
n /= d;
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
k=2;
goto modD;
}
else
{
d += 1;
goto start;
}
}
}
else return 0;
}
return 0;
} | # 1084, 2024-09-28 10:43:59, PP-P--P----T----PP (33%)
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string ans,str;
long n,k=2;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
start:
if(n > 1)
{
if(d*d > n)
{
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
}
else
{
modD:
if(n % d == 0)
{
n /= d;
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
k=2;
goto modD;
}
else
{
d += 1;
goto start;
}
}
}
else return 0;
}
return 0;
} | # 1085, 2024-09-28 10:44:19, PP-P--P---TTTTTTPP (33%)
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string ans,str;
int n,k=2;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
start:
if(n > 1)
{
if(d*d > n)
{
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
}
else
{
modD:
if(n % d == 0)
{
n /= d;
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
k=2;
goto modD;
}
else
{
d += 1;
goto start;
}
}
}
else return 0;
}
return 0;
} | # 1086, 2024-09-28 11:10:43, PPxPxxPxxxxTxxxxPP (33%)
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string ans,str;
long n,k=2;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
start:
if(n > 1)
{
if(d*d > n)
{
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
}
else
{
modD:
if(n % d == 0)
{
n /= d;
while(d != 1)
{
if(d%k == 0)
{
d = d/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
k=2;
goto modD;
}
else
{
d += 1;
goto start;
}
}
}
else return 0;
}
return 0;
} | # 1087, 2024-09-28 11:13:37, PPTPTTPTTTTTTTTTPP (33%)
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string ans,str;
long n,k=2;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
start:
if(n > 1)
{
if(d*d > n)
{
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
}
else
{
modD:
if(n % d == 0)
{
n /= d;
while(d != 1)
{
if(d%k == 0)
{
d = d/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
ans.erase(0,ans.length());
k=2;
goto modD;
}
else
{
d += 1;
goto start;
}
}
}
else return 0;
}
return 0;
} | # 1088, 2024-09-28 11:41:58, PPTTTTTTTTTTTTTTPP (22%)
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string ans,str;
long n,k=2;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
start:
if(n > 1)
{
if(d*d > n)
{
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k+=2;
}
cout << ans;
}
else
{
modD:
if(n % d == 0)
{
n /= d;
while(d != 1)
{
if(d%k == 0)
{
d = d/k;
str = to_string(k);
ans = ans + str + " ";
}
else k+=2;
}
cout << ans;
ans.erase(0,ans.length());
k=2;
goto modD;
}
else
{
d += 1;
goto start;
}
}
}
else return 0;
}
return 0;
} | # 1089, 2024-09-28 11:42:19, PPTPTTPTTTTTTTTTPP (33%)
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string ans,str;
long n,k=2;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
start:
if(n > 1)
{
if(d*d > n)
{
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
}
else
{
modD:
if(n % d == 0)
{
n /= d;
while(d != 1)
{
if(d%k == 0)
{
d = d/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
}
cout << ans;
ans.erase(0,ans.length());
k=2;
goto modD;
}
else
{
d += 1;
goto start;
}
}
}
else return 0;
}
return 0;
} | # 1090, 2024-09-28 11:49:28, PPTPTTPTTTTTTTTTPP (33%)
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string ans,str;
long n,k=2;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
start:
if(n > 1)
{
if(d*d > n)
{
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
if(k >= 9) k = n;
}
cout << ans;
}
else
{
modD:
if(n % d == 0)
{
n /= d;
while(d != 1)
{
if(d%k == 0)
{
d = d/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
if(k >= 9) k = d;
}
cout << ans;
ans.erase(0,ans.length());
k=2;
goto modD;
}
else
{
d += 1;
goto start;
}
}
}
else return 0;
}
return 0;
} | # 1091, 2024-09-28 11:51:38, PPTPTTPTTTTTTTTTPP (33%)
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
string ans,str;
long n,k=2;
cin >> n;
int d = 2;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
start:
if(n > 1)
{
if(d*d > n)
{
while(n != 1)
{
if(n%k == 0)
{
n = n/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
if(k >= 8) k = n;
}
cout << ans;
}
else
{
modD:
if(n % d == 0)
{
n /= d;
while(d != 1)
{
if(d%k == 0)
{
d = d/k;
str = to_string(k);
ans = ans + str + " ";
}
else k++;
if(k >= 8) k = d;
}
cout << ans;
ans.erase(0,ans.length());
k=2;
goto modD;
}
else
{
d += 1;
goto start;
}
}
}
else return 0;
}
return 0;
} |
# 1092, 2024-09-28 12:54:30, PPTPTTPTTTTTTTTTPP (33%)
#include <iostream>
#include <string>
using namespace std ;
int main () {
long int N = 0 ;
cin >> N ; cin.ignore() ;
long int d = 2 ;
if ( N < 2 ) {
cout << "No prime factors for numbers less than 2." << endl ;
} else {
while ( N > 1 ) {
if (( (d*d) > N)) {
for ( long int i = 2 ; N > 1 ; i++ ){
for ( long int j = i ; N%j == 0 ;) {
N /= j ;
cout << j ;
if ( N != 1 ) {
cout << " " ;
}
}
}
break ;
} else {
while ( N%d == 0 ) {
N /= d ;
for ( long int i = 2 ; d > 1 ; i++ ){
for ( long int j = i ; d%j == 0 ;) {
d /= j ;
cout << j ;
if ( d != 1 ) {
cout << " " ;
}
}
}
}
d += 1 ;
}
}
}
} | # 1093, 2024-09-28 14:33:01, PPTPTTPTTTTTTTTTPP (33%)
#include <iostream>
#include <cmath>
using namespace std ;
int main () {
long int N = 0 ;
long int d = 2 ;
cin >> N ;
if ( N < 2 ) {
cout << "No prime factors for numbers less than 2." << endl ;
} else {
while ( N > 1 ) {
if ( (d*d) > N ) {
for ( long int i = 2 ; N > 1 ; i++ ){
for ( long int j = i ; N%j == 0 ;) {
N /= j ;
cout << j ;
if ( N != 1 ) {
cout << " " ;
}
}
}
break ;
} else {
while ( N%d == 0 ) {
N /= d ;
for ( long int i = 2 ; d > 1 ; i++ ){
for ( long int j = i ; d%j == 0 ;) {
d /= j ;
cout << j ;
if ( d != 1 ) {
cout << " " ;
}
}
}
}
d += 1 ;
}
}
return 0 ;
}
} | # 1094, 2024-09-28 14:35:06, PPTPTTPTTTTTTTTTPP (33%)
#include <iostream>
#include <cmath>
using namespace std ;
int main () {
long int N = 0 ;
long int d = 2 ;
cin >> N ;
if ( N < 2 ) {
cout << "No prime factors for numbers less than 2." << endl ;
} else {
while ( N > 1 ) {
if ( (d*d) > N ) {
for ( long int i = 2 ; N > 1 ; i++ ){
for ( long int j = i ; N%j == 0 ;) {
N /= j ;
cout << j ;
if ( N != 1 ) {
cout << " " ;
}
}
}
} else {
while ( N%d == 0 ) {
N /= d ;
for ( long int i = 2 ; d > 1 ; i++ ){
for ( long int j = i ; d%j == 0 ;) {
d /= j ;
cout << j ;
if ( d != 1 ) {
cout << " " ;
}
}
}
}
d += 1 ;
}
}
return 0 ;
}
} | # 1095, 2024-09-28 14:54:32, PPTPTTPTTTTTTTTTPP (33%)
#include <iostream>
#include <cmath>
using namespace std ;
int main () {
int N = 0 ;
int d = 2 ;
cin >> N ;
if ( N < 2 ) {
cout << "No prime factors for numbers less than 2." << endl ;
} else {
while ( N > 1 ) {
if ( (d*d) > N ) {
for ( int i = 2 ; N > 1 ; i++ ){
for ( int j = i ; N%j == 0 ;) {
N /= j ;
cout << j ;
if ( N != 1 ) {
cout << " " ;
}
}
}
break ;
} else {
while ( N%d == 0 ) {
N /= d ;
for ( int i = 2 ; d > 1 ; i++ ){
for ( int j = i ; d%j == 0 ;) {
d /= j ;
cout << j ;
if ( d != 1 ) {
cout << " " ;
}
}
}
}
d += 1 ;
}
}
return 0 ;
}
} |
# 1096, 2024-09-28 10:34:55, PPP------PxT----PP (33%)
#include <bits/stdc++.h>
using namespace std ;
int main() {
long long n;
cin>>n;
int d=2;
bool stop=false ;
if (n<2) {
cout<<"No prime factors for numbers less than 2."<<endl ;
stop=true;
}
while(!stop) {
if(n>1) {
if(d*d>n) {
for (int i=2;i<=n;i++) {
int count=0;
if (n%i==0) {
for (int j=2;j<i-1;j++)
if (i%j==0) {
count++;
}
}
if(count==0) {
cout<<i<<" ";
}
}
stop=true ;
}
else if (n%d==0) {
while (n%d==0) {
n/=d ;
for (int i=2;i<=d;i++) {
int count=0;
if (d%i==0) {
for (int j=2;j<i-1;j++)
if (i%j==0) {
count++;
}
}
if(count==0) {
cout<<i<<" ";
}
}
}
}
else if (n%d!=0) {
d+=1;
}
}
if (n<=1) {
stop=true ;
}
}
} |
# 1097, 2024-09-28 09:32:20, P---------------PP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
if(n>1){
if(d*d>n){
for(int i=0;i<n;i++){
cout << n << " ";
}
}
} else {
do{
if(n%d==0){
n/=d;
for(int i=0;i<n;i++){
cout << d << " ";
}
} else {
d+=1;
}
} while(n%d != 0);
}
}
} | # 1098, 2024-09-28 10:14:23, P---------TTTTTTPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
if(n>1){
if(d*d>n){
cout << n << " ";
} else {
do{
if(n%d==0){
while(n%d==0){
n/=d;
cout << d << " ";
}
} else {
d+=1;
}
} while(n>1);
}
} cout << n;
}
} | # 1099, 2024-09-28 10:33:08, P---------TTTTTTPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
if(n>1){
if(d*d>n){
cout << n << " ";
} else {
do{
if(n%d==0){
while(n%d==0){
n/=d;
cout << d << " ";
break;
}
} else {
d+=1;
}
} while(n>1);
}
} cout << n;
}
} | # 1100, 2024-09-28 10:34:09, P--P--P---------PP (27%)
#include<iostream>
#include<cmath>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
if(n>1){
if(d*d>n){
cout << n << " ";
} else {
do{
if(n%d==0){
while(n%d==0){
n/=d;
cout << d << " ";
}
} else {
d+=1;
break;
}
} while(n>1);
}
} cout << n;
}
} | # 1101, 2024-09-28 11:52:06, PT-TT-T-T-TTTTTTPP (16%)
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
do{
if(n>1){
if(d*d>n){
string ans = to_string(n) + " ";
cout << ans.substr(0,ans.length()-1);
} else {
if(n%d==0){
while(n%d==0){
n/=d;
string ans = to_string(d);
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
}
} else {
d+=1;
}
}
}
} while(n>1);
}
} | # 1102, 2024-09-28 11:52:48, PT-TT-T-T-TTTTTTPP (16%)
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
do{
if(n>1){
if(d*d>n){
string ans = to_string(n) + " ";
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
} else {
if(n%d==0){
while(n%d==0){
n/=d;
string ans = to_string(d);
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
}
} else {
d+=1;
}
}
}
} while(n>1);
}
} | # 1103, 2024-09-28 11:54:20, PT--------------PP (16%)
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
do{
if(n>1){
if(d*d>n){
string ans = to_string(n) + " ";
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
} else {
if(n%d==0){
while(n%d==0){
n/=d;
string ans = to_string(d);
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
}
} else {
d+=1;
break;
}
}
}
} while(n>1);
}
} | # 1104, 2024-09-28 11:55:11, PT-TT-T-T-TTTTTTPP (16%)
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
while(n>1){
if(n>1){
if(d*d>n){
string ans = to_string(n) + " ";
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
} else {
if(n%d==0){
while(n%d==0){
n/=d;
string ans = to_string(d);
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
}
} else {
d+=1;
}
}
}
}
}
} | # 1105, 2024-09-28 11:58:10, PT-T--T---TTTTTTPP (16%)
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
int n;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
while(n>1){
if(n>1){
if(d*d>n){
string ans = to_string(n) + " ";
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
} else {
if(n%d==0){
while(n%d==0){
n/=d;
string ans = to_string(d);
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
}
break;
} else {
d+=1;
}
}
}
}
}
} | # 1106, 2024-09-28 11:59:07, PT-T--T---TTTTTTPP (16%)
#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int main(){
int n=0;
cin >> n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less than 2.";
} else {
while(n>1){
if(n>1){
if(d*d>n){
string ans = to_string(n) + " ";
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
} else {
if(n%d==0){
while(n%d==0){
n/=d;
string ans = to_string(d);
cout << ans << " " << endl;
cout << ans.substr(0,ans.length()-1);
}
break;
} else {
d+=1;
}
}
}
}
}
} |
# 1107, 2024-09-28 12:47:07, P---------------PP (16%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
for(int i=2;i<N;i++){
if(N%i==0){
cout << i << " ";
}
}
}else{
if(N%d==0){
N/=d;
for(int i=2;i<N;i++){
if(N%i==0){
cout << i << " ";
}
break;
}
}else{
d+=1;
}
}
}
}
} | # 1108, 2024-09-28 12:54:58, Px--------------PP (16%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
for(int i=0;i<N;i++){
if(N%i!=0 && N%N==0){
cout << N;
}
}
}else{
if(N%d==0){
N/=d;
for(int i=2;i<N;i++){
if(N%i==0){
cout << i << " ";
}
break;
}
}else{
d+=1;
}
}
}
}
} | # 1109, 2024-09-28 13:10:16, PP--------------PP (22%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
if(N>1){
if(d*d>N){
cout << N << " ";
}else{
if(N%d==0){
N/=d;
for(int i=2;i<N;){
if(N%i==0){
cout << i << " ";
if(N%i!=0) i++;
}
break;
}
}else{
d+=1;
}
}
}
}
} | # 1110, 2024-09-28 14:56:33, PP-x--x----T----PP (22%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
do{
if(N>1){
if(d*d>N){
cout << N;
}else{
if(N%d==0){
N/=d;
cout << d;
}else{
d+=1;
}
}
}else{
break;
}
}while(N%d!=0);
}
} | # 1111, 2024-09-28 15:02:40, P---P-----TT-TTTPP (22%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
for(int d=2;d<N;d++){
if(N>1){
if(d*d>N){
cout << N << " ";
}else{
if(N%d==0){
N/=d;
cout << d << " ";
}else{
d+=1;
}
}
}else{
break;
}
}
}
} | # 1112, 2024-09-28 15:02:55, P---P-----TT-TTTPP (22%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
for(int d=2;d<N;d++){
if(N>1){
if(d*d>N){
cout << N << " ";
}else{
if(N%d==0){
N/=d;
cout << d << " ";
}else{
d+=1;
}
}
}else{
break;
}
}
}
} | # 1113, 2024-09-28 15:07:45, P---P---P-xT----PP (27%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
for(int d=2;d<N;){
if(N>1){
if(d*d>N){
cout << N << " ";
}else{
if(N%d==0){
N/=d;
cout << d << " ";
}else{
d+=1;
}
}
//if(N%d!=0) d++;
}else{
break;
}
if(N%d!=0) d++;
}
}
} | # 1114, 2024-09-28 15:09:51, P--TT-T-T-xT-xxxPP (16%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
for(int d=2;d<N;){
if(N>1){
if(d*d>N){
cout << N << " ";
}else{
if(N%d==0){
N/=d;
cout << d << " ";
}else{
d+=1;
}
}
}else{
break;
}
}
}
} | # 1115, 2024-09-28 15:10:36, P---P---P-xT----PP (27%)
#include <iostream>
using namespace std;
int main(){
long long N;
cin >> N;
int d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}else{
for(int d=2;d<N;){
if(N>1){
if(d*d>N){
cout << N << " ";
}else{
if(N%d==0){
N/=d;
cout << d << " ";
}else{
d+=1;
}
}
//if(N%d!=0) d++;
}else{
break;
}
if(N%d!=0) d++;
}
}
} |
# 1116, 2024-09-28 09:40:37, Compilation error (0%)
#include<iostream>
#include<cmath>
int main(){
int n,d=2;
std::cin >> n;
if ( n < 2)
{
std::cout >> "No prime factors for numbers less than 2." ;
}
for (int i = 2; i < n/2; i++)
{
if (d*d > n)
{ std::cout<< n;
break;}
if (n % d==0)
{
std::cout << d;
n = n/d;
}else{
d+=1;
}
if (n<=1){
break;
}
}
} | # 1117, 2024-09-28 09:43:09, P--P--P---TTTTTTPP (27%)
#include<iostream>
#include<cmath>
int main(){
int n,d=2;
std::cin >> n;
if ( n < 2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
for (int i = 2; i < n/2; i++)
{
if (d*d > n)
{ std::cout << n;
break;}
if (n % d==0)
{
std::cout << d;
n = n/d;
}else{
d+=1;
}
if (n<=1){
break;
}
}
} | # 1118, 2024-09-28 09:44:36, P--P--P---TTTTTTPP (27%)
#include<iostream>
#include<cmath>
int main(){
int n,d=2;
std::cin >> n;
if ( n < 2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
for (int i = 2; i < n/2; i++)
{
if (d*d > n)
{ std::cout << n;
break;}
if (n % d==0)
{
std::cout << d << " ";
n = n/d;
}else{
d+=1;
}
if (n<=1){
break;
}
}
} | # 1119, 2024-09-28 09:56:08, P--P--P---TTTTTTPP (27%)
#include<iostream>
#include<cmath>
int main(){
int n,d=2;
std::cin >> n;
if ( n < 2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
for (int i = 2; i < n/2; i++)
{
if (d*d > n)
{ std::cout << n;
break;}
if (n % d==0)
{
std::cout << d << " ";
n = n/d;
}else{
d+=1;
}
if (d>n){
break;
}
}
} | # 1120, 2024-09-28 09:57:42, Compilation error (0%)
#include<iostream>
#include<cmath>
int main(){
double n;
int d=2;
std::string num;
std::cin >> n;
if ( n < 2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
for (int i = 2; i < n/2; i++)
{
if (d*d > n)
{ std::cout << n ;
break;}
if (n % d==0)
{
std::cout << d << " ";
n = n/d;
}else{
d+=1;
}
if (d>n){
break;
}
}
} | # 1121, 2024-09-28 10:10:07, P--P--P---TTTTTTPP (27%)
#include<iostream>
#include<cmath>
int main(){
int n;
int d=2;
std::string num;
std::cin >> n;
if ( n < 2)
{
std::cout << "No prime factors for numbers less than 2." ;
}
for (int i = 2; i < n/2; i++)
{
if (d*d > n)
{ std::cout << n ;
break;}
else if (n % d==0)
{
std::cout << d << " ";
n = n/d;
}else{
d+=1;
}
if (d>n){
break;
}
}
} |
# 1122, 2024-09-28 09:30:08, ------------------ (0%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d;
d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2" << endl;
// }else{
// if(N>1){
// if(d*d>N){
// //
// }else if(N%d==0){
// N/=d;
// cout << "d" << endl;
// }else{
// d+=1;
// if(N>1){
// if(d*d>N){
// //
// }
// }
// }
// }
}
} | # 1123, 2024-09-28 09:31:05, P---------------PP (16%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d;
d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2." << endl;
}
} | # 1124, 2024-09-28 09:36:51, PP--------------PP (22%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d;
d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2." << endl;
}else{
if(N>1){
if(d*d>N){
cout << d << endl;
}
// else if(N%d==0){
// N/=d;
// cout << d << endl;
// }else{
// d+=1;
// if(N>1){
// if(d*d>N){
// //
// }
// }
// }
}
}
} | # 1125, 2024-09-28 10:26:45, PP--------------PP (22%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d;
d = 2;
if(N<2){
cout << "No prime factors for numbers less than 2." << endl;
}else{
if(N>1){
if(d*d>N){
cout << d << endl;
}else if(N%d==0){
N/=d;
cout << d << endl;
}else{
d+=1;
if(N>1){
if(d*d>N){
cout << d << endl;
}else if(N%d == 0){
if(N/=d){
cout << d << endl;
}else{
d+=1;
if(N>1){
if(d*d>N){
cout << d << endl;
}
}
}
}
}
}
}
}
} |
# 1126, 2024-09-28 10:09:00, PP--------T-----PP (22%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
int k = 0, a[1000];
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
if (n > 1){
if (d * d > n){
for (int i = 2; i <= n; ){
if (n % i == 0){
a[k++] = i;
n /= i;
} else {
i++;
}
for (int i = 0; i < k-1; i++) cout << a[i] << " ";
cout << a[k-1];
}
} else {
if (n % d == 0){
for (int d = 2; d <= n; ){
if (n % d == 0){
a[k++] = d;
n /= d;
} else {
d++;
}
for (int j = 0; j < k-1; j++) cout << a[j] << " ";
cout << a[k-1];
}
}
}
}
}
} | # 1127, 2024-09-28 11:40:35, P---------T-----PP (16%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
int k = 0, a[1000];
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
if (n > 1){
if (d * d > n){
for (int i = 2; i <= n; ){
if (n % i == 0){
a[k++] = i;
n /= i;
} else {
i++;
}
for (int i = 0; i < k-1; i++) cout << a[i] << " ";
}
} else {
if (n % d == 0){
for (int d = 2; d <= n; ){
if (n % d == 0){
a[k++] = d;
n /= d;
} else {
d++;
}
for (int j = 0; j < k-1; j++) cout << a[j] << " ";
}
}
}
}
}
} | # 1128, 2024-09-28 11:41:36, PP--------T-----PP (22%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
int k = 0, a[1000];
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
if (n > 1){
if (d * d > n){
for (int i = 2; i <= n; ){
if (n % i == 0){
a[k++] = i;
n /= i;
} else {
i++;
}
for (int i = 0; i < k-1; i++) cout << a[i] << " ";
cout << a[k-1];
}
} else {
if (n % d == 0){
for (int d = 2; d <= n; ){
if (n % d == 0){
a[k++] = d;
n /= d;
} else {
d++;
}
for (int j = 0; j < k-1; j++) cout << a[j] << " ";
cout << a[k-1];
}
}
}
}
}
} | # 1129, 2024-09-28 11:42:03, PP-T--T---TT-T--PP (22%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long n;
cin >> n;
int d = 2;
int k = 0, a[1000];
if (n < 2){
cout << "No prime factors for numbers less than 2.";
} else {
while (n > 1){
if (d * d > n){
for (int i = 2; i <= n; ){
if (n % i == 0){
a[k++] = i;
n /= i;
} else {
i++;
}
for (int i = 0; i < k-1; i++) cout << a[i] << " ";
cout << a[k-1];
}
} else {
while (n % d == 0){
for (int d = 2; d <= n; ){
if (n % d == 0){
a[k++] = d;
n /= d;
} else {
d++;
}
for (int j = 0; j < k-1; j++) cout << a[j] << " ";
cout << a[k-1];
}
}
}
}
}
} |
# 1130, 2024-09-28 09:25:00, -P-P--P----P------ (22%)
#include <iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
long long int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2";
}
else{
while (n > 1){
if(d * d > n){
cout << n;
break;
}
else{
if (n % d == 0){
n /= d;
while (n >= d){
if(n % d == 0){
n /= d;
cout << d << " ";
}
else{
d++;
}
}
return 0;
}
else{
d += 1;
continue;
}
}
}
return 0;
}
} | # 1131, 2024-09-28 09:43:03, -P-P--P----P------ (22%)
#include <iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
long long int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while (n > 1){
if(d * d > n){
cout << n;
break;
}
else{
if (n % d == 0){
n /= d;
while (n >= d){
if(n % d == 0){
n /= d;
cout << d << " ";
}
else{
d++;
}
}
return 0;
}
else{
d += 1;
continue;
}
}
}
return 0;
}
} | # 1132, 2024-09-28 11:30:15, -T-P--P----T------ (11%)
#include <iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while (n > 1){
if(d * d > n){
if(n % 2 != 0){
cout << n;
break;
}
}
else{
if (n % d == 0){
n /= d;
while (n >= d){
if(n % d == 0){
n /= d;
cout << d << " ";
}
else{
d++;
}
}
return 0;
}
else{
d += 1;
continue;
}
}
}
return 0;
}
} | # 1133, 2024-09-28 11:30:35, -P-P--P----P------ (22%)
#include <iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
long long int d = 2;
if(n < 2){
cout << "No prime factors for number less than 2.";
}
else{
while (n > 1){
if(d * d > n){
cout << n;
break;
}
else{
if (n % d == 0){
n /= d;
while (n >= d){
if(n % d == 0){
n /= d;
cout << d << " ";
}
else{
d++;
}
}
return 0;
}
else{
d += 1;
continue;
}
}
}
return 0;
}
} |
# 1134, 2024-09-28 12:49:31, PTTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
if(n>1)
{
while (true)
{
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
}
else
{
if(n%d == 0)
{
n/=d;
for (int i=2; i<n; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
}
}
}
} | # 1135, 2024-09-28 12:51:00, PTTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
if(n>1)
{
while (true)
{
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
}
else
{
if(n%d == 0)
{
n/=d;
for (int i=2; i<n; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
}
while(false)
{
break;
}
}
}
} | # 1136, 2024-09-28 12:52:01, PTTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
if(n>1)
{
while (true)
{
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
}
else
{
if(n%d == 0)
{
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
}
while(false)
{
break;
}
}
}
} | # 1137, 2024-09-28 13:30:42, Compilation error (0%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
if(n>1)
{
while (true)
{
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
}
else
{
if(n%d == 0)
{
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
while(false)
{
break;
}
}
}
} | # 1138, 2024-09-28 13:31:24, PTTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
if(n>1)
{
while (true)
{
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
}
else
{
if(n%d == 0)
{
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
while(false)
{
break;
}
}
}
}
} | # 1139, 2024-09-28 14:09:46, PTTTTTTTTTTTTTTTPP (16%)
#include<iostream>
using namespace std;
int main()
{
long long n;
cin>>n;
long long d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
if(n>1)
{
while (true)
{
if(d*d>n)
{
for (long long i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
}
else
{
if(n%d == 0)
{
n/=d;
for (long long i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
while(false)
{
break;
}
}
}
}
} | # 1140, 2024-09-28 14:12:09, PTTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
while (true)
{
if(n>1)
{
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
}
else
{
if(n%d == 0)
{
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
}
while(false)
{
break;
}
}
}
} | # 1141, 2024-09-28 14:13:37, PTTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
while ((n>1))
{
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
}
else
{
if(n%d == 0)
{
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
}
}
} | # 1142, 2024-09-28 14:14:44, PTTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else
{
while (n>1)
{
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
}
else
{
if(n%d == 0)
{
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
}
while (n<=1)
{
break;
}
}
} | # 1143, 2024-09-28 14:47:16, P-TTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
while(n>1)
{
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
break;
}
while(true)
{
if((n%d==0)){
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
}
} | # 1144, 2024-09-28 14:48:46, P-TTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
while(true)
{
if(n>1){
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
break;
}
while(true)
{
if((n%d==0)){
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
}
else{
break;
}
}
} | # 1145, 2024-09-28 14:57:59, P-TTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else{
while(true)
{
if(n>1){
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
break;
}
while(true)
{
if((n%d==0)){
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
continue;
}
}
}
else{
break;
}
}
}
} | # 1146, 2024-09-28 15:01:06, P-TTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else{
while(true)
{
if(n>1){
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
break;
}
while(true)
{
if((n%d==0)){
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
}
continue;
}
}
else{
break;
}
}
}
} | # 1147, 2024-09-28 15:05:05, P-TTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else{
while(true)
{
if(n>1){
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
cout<<n%i<<" ";
}
}
break;
}
else{
while(true)
{
if((n%d==0)){
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
}
}
continue;
}
}
else{
break;
}
}
}
} | # 1148, 2024-09-28 15:06:52, P-TTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else{
while(true)
{
if(n>1){
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i != 0)
{
cout<<n%i<<" ";
}
}
break;
}
else{
while(true)
{
if((n%d==0)){
n/=d;
for (int i=2; i<d; i++)
{
if(d%i != 0)
{
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
}
}
continue;
}
}
else{
break;
}
}
}
} | # 1149, 2024-09-28 15:14:39, P-TTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else{
while(true)
{
if(n>1){
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
if((n%i)%i !=0)
cout<<n%i<<" ";
}
}
break;
}
else{
while(true)
{
if((n%d==0)){
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
if((d%i)%i !=0)
cout<<d%i<<" ";
}
}
continue;
}
else
{
d+=1;
}
}
continue;
}
}
else{
break;
}
}
}
} | # 1150, 2024-09-28 15:16:06, P-TTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int d=2;
if(n<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else{
while(true)
{
if(n>1){
if(d*d>n)
{
for (int i=2; i<n; i++)
{
if(n%i == 0)
{
for (int j=2; j<n; j++)
{
if((n%i)%j !=0)
cout<<n%i<<" ";
}
}
}
break;
}
else{
while(true)
{
if((n%n==0)){
n/=d;
for (int i=2; i<d; i++)
{
if(d%i == 0)
{
for (int j=2; j<d; j++)
{
if((d%i)%j !=0)
cout<<d%i<<" ";
}
}
}
continue;
}
else
{
d+=1;
}
}
continue;
}
}
else{
break;
}
}
}
} |
# 1151, 2024-09-28 12:38:32, -TTxTTxxTxxxxxxx-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
cout << N ;
}
else if(N%d==0){
N/=d ;
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} | # 1152, 2024-09-28 12:38:51, -TTxTTxxTTxxxxxx-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
cout << N ;
}
else if(N%d==0){
N/=d ;
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} | # 1153, 2024-09-28 12:39:01, -TTxTTxxTxxxxxxx-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
cout << N ;
}
else if(N%d==0){
N/=d ;
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} | # 1154, 2024-09-28 12:42:20, -TTxTTTxTxxxxxxx-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
cout << N ;
}
else if(N%d==0){
N/=d ;
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} | # 1155, 2024-09-28 13:05:28, -TTTTTTTTTTTTTTT-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long n ; long long i ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
for(long long i=0;i<n;i++){
cout << i << " " ;
}
}
else if(N%d==0){
N/=d ;
for(long long i=0;i<n;i++){
cout << d << " " ;
}
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} | # 1156, 2024-09-28 13:08:21, -TTTTTTTTTTTTTTT-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long n ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
for(long long i=0;i<n;i++){
cout << i << " " ;
}
}
else if(N%d==0){
N/=d ;
for(long long i=0;i<n;i++){
cout<< d << " " ;
}
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} | # 1157, 2024-09-28 13:08:29, -TTTTTTTTTTTTTTT-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long n ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
for(long long i=0;i<n;i++){
cout << i << " " ;
}
}
else if(N%d==0){
N/=d ;
for(long long i=0;i<n;i++){
cout<< d << " " ;
}
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} | # 1158, 2024-09-28 13:08:45, -TTTTTTTTTTTTTTT-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long n ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
for(long long i=0;i<n;i++){
cout << i << " " ;
}
}
else if(N%d==0){
N/=d ;
for(long long i=0;i<n;i++){
cout<< d << " " ;
}
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} | # 1159, 2024-09-28 13:09:02, -TTTTTTTTTTTTTTT-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long n ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
for(long long i=0;i<n;i++){
cout << i << " " ;
}
}
else if(N%d==0){
N/=d ;
for(long long i=0;i<n;i++){
cout<< d << " " ;
}
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} | # 1160, 2024-09-28 13:09:28, -TTTTTTTTTTTTTTT-- (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long n ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
do{
if(d*d>N){
for(long long i=0;i<n;i++){
cout << i << " " ;
}
}
else if(N%d==0){
N/=d ;
for(long long i=0;i<n;i++){
cout<< d << " " ;
}
}
}while(d+=1) ;
}
else return 0 ;
} | # 1161, 2024-09-28 13:09:58, Compilation error (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long n ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
if(d*d>N){
for(long long i=0;i<n;i++){
cout << i << " " ;
}
}
else if(N%d==0){
N/=d ;
for(long long i=0;i<n;i++){
cout<< d << " " ;
}
else(d+=1) ;
}
else return 0 ;
} | # 1162, 2024-09-28 13:10:40, Compilation error (0%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long n ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2" ;
}
else if(N>1){
while((d+=1)){
if(d*d>N){
for(long long i=0;i<n;i++){
cout << i << " " ;
}
}
else if(N%d==0){
N/=d ;
for(long long i=0;i<n;i++){
cout<< d << " " ;
}
}
}
else return 0 ;
} | # 1163, 2024-09-28 13:19:33, PTTTTTTTTTTTTTTTPP (16%)
#include<iostream>
using namespace std ;
int main(){
long long N ; cin >> N ;
long long n ;
long long d = 2 ;
if(N<2){
cout << "No prime factors for numbers less than 2." ;
}
else if(N>1){
do{
if(d*d>N){
for(long long i=0;i<n;i++){
cout << i << " " ;
}
}
else if(N%d==0){
N/=d ;
for(long long i=0;i<n;i++){
cout<< d << " " ;
}
cout << d ;
}
}while(d+=1) ;
}
else return 0 ;
} |
# 1164, 2024-09-28 12:49:51, PT-TT-TT---TT-T-PP (16%)
//104_​exam67_​1_​P1: Flowchart Prime Factors star
#include<iostream>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{
long long int n , d;
d = 2;
cin >> n;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n > 1)
{
if(d * d > n)
{
for(long long int i = 2 ; i < n ; i++)
{
if(n % i == 0)
{
cout << i << " ";
i = 2;
n = n / i;
}
}
//cout << n PRIME
}
else
{
do
{
n /= d;
for(long long int j = 2 ; j < d ; j++)
{
if(d % j == 0)
{
cout << j << " ";
j = 2;
d = d / j;
}
}
//cout << d prime
}while(n % d == 0);
d += 1;
}
}
}
return 0;
} | # 1165, 2024-09-28 12:50:28, PT-TT-TTT-TTT-TTPP (16%)
//104_​exam67_​1_​P1: Flowchart Prime Factors star
#include<iostream>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{
long long int n , d;
d = 2;
cin >> n;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n > 1)
{
if(d * d > n)
{
for(long long int i = 2 ; i < sqrt(n) ; i++)
{
if(n % i == 0)
{
cout << i << " ";
i = 2;
n = n / i;
}
}
//cout << n PRIME
}
else
{
do
{
n /= d;
for(long long int j = 2 ; j < sqrt(d) ; j++)
{
if(d % j == 0)
{
cout << j << " ";
j = 2;
d = d / j;
}
}
//cout << d prime
}while(n % d == 0);
d += 1;
}
}
}
return 0;
} | # 1166, 2024-09-28 14:07:35, PT-TT-TTT-TTTTTTPP (16%)
//104_​exam67_​1_​P1: Flowchart Prime Factors star
#include<iostream>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{
int n;
int d;
d = 2;
cin >> n;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
do
{
if(d * d > n)
{
for(int i = 2 ; i < n ; i++)
{
if(n % i == 0)
{
cout << "i = " << i << " ";
n = n / i;
i = 2;
}
}
//cout << n PRIME
}
else
{
do
{
n /= d;
for(long long int j = 2 ; j < sqrt(d) ; j++)
{
if(d % j == 0)
{
cout << j << " ";
d = d / j;
j = 2;
}
}
//cout << d prime
}while(n % d == 0);
d += 1;
}
}while(n > 1);
}
return 0;
} | # 1167, 2024-09-28 14:09:43, PT-TT-TT---TT-T-PP (16%)
//104_​exam67_​1_​P1: Flowchart Prime Factors star
#include<iostream>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{
long long int n , d;
d = 2;
cin >> n;
if(n < 2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n > 1)
{
if(d * d > n)
{
for(long long int i = 2 ; i < n ; i++)
{
if(n % i == 0)
{
cout << i << " ";
n = n / i;
i = 2;
}
}
//cout << n PRIME
}
else
{
do
{
n /= d;
for(long long int j = 2 ; j < d ; j++)
{
if(d % j == 0)
{
cout << j << " ";
d = d / j;
j = 2;
}
}
//cout << d prime
}while(n % d == 0);
d += 1;
}
}
}
return 0;
} | # 1168, 2024-09-28 14:31:20, P-TTTTTTTTTTTTTTPP (16%)
//104_​exam67_​1_​P1: Flowchart Prime Factors star
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
long long int n;
bool n1 = true , nd = true , ci = true;
int d = 2;
cin >> n;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n1 = true)
{
if(n > 1)
{
if(d * d > n)
{
for(long i = 2 ; i < sqrt(n) ; i++)
{
if(n % i == 0)
{
for(long j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(n == 1)
{
n1 = false;
}
}
}
break;
}
else
{
while(nd = true)
{
if(n % d == 0)
{
n = n / d;
for(int i = 2 ; i < d ; i++)
{
if(d % i == 0)
{
for(int j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(d == 1)
{
nd = false;
}
}
}
}
else
{
d += 1;
nd = false;
}
}
}
}
}
}
return 0;
} | # 1169, 2024-09-28 14:44:03, TTTTTTTTTTxxxxxx-x (0%)
#include<iostream>
#include<cmath>
#include<iomanip>
#include<math.h>
using namespace std;
int main()
{
int m;
double irr = 0 , l = -1 , u = 1 , sum = 0;
cin >> m;
int c[m + 1];
for(int i = 0 ; i < m + 1 ; i++)
{
cin >> c[i];
}
for(int i = 0 ; i < m + 1 ; i++)
{
sum = c[i];
while(abs(c[i] - pow(irr + 1 , i)) > pow(10 , -8) * max(sum ,pow(irr + 1 , i)))
{
if(pow(irr + 1 , i) > c[i])
{
u = irr;
irr = (l + u) / 2;
}
else if(pow(irr + 1 , i) < c[i])
{
l = irr;
irr = (l + u) / 2;
}
}
}
cout << setprecision(8) << irr << endl;
return 0;
} | # 1170, 2024-09-28 14:57:35, P-TTTTTTTTTTTTTTPP (16%)
//104_​exam67_​1_​P1: Flowchart Prime Factors star
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
long long int n;
bool n1 = true , nd = true , ci = true;
int d = 2;
cin >> n;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n1 = true)
{
if(n > 1)
{
if(d * d > n)
{
for(long i = 2 ; i < sqrt(n) ; i++)
{
if(n % i == 0)
{
for(long j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(n == 1)
{
n1 = false;
}
}
}
break;
}
else
{
while(nd = true)
{
if(n % d == 0)
{
n = n / d;
for(int i = 2 ; i < d ; i++)
{
if(d % i == 0)
{
for(int j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(d == 1)
{
nd = false;
}
}
}
}
else
{
d += 1;
nd = false;
}
}
}
}
}
}
return 0;
} | # 1171, 2024-09-28 15:01:22, P-TTTTTTTTTTTTTTPP (16%)
//104_​exam67_​1_​P1: Flowchart Prime Factors star
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n;
bool n1 = true , nd = true , ci = true;
int d = 2;
cin >> n;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
while(n1 = true)
{
if(n > 1)
{
if(d * d > n)
{
for(int i = 2 ; i < sqrt(n) ; i++)
{
if(n % i == 0)
{
for(int j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(n == 1)
{
n1 = false;
}
}
}
break;
}
else
{
while(nd = true)
{
if(n % d == 0)
{
n = n / d;
for(int i = 2 ; i < d ; i++)
{
if(d % i == 0)
{
for(int j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(d == 1)
{
nd = false;
}
}
}
}
else
{
d += 1;
nd = false;
}
}
}
}
}
}
return 0;
} | # 1172, 2024-09-28 15:02:43, P---------------PP (16%)
//104_​exam67_​1_​P1: Flowchart Prime Factors star
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n;
bool n1 = true , nd = true , ci = true;
int d = 2;
cin >> n;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
}
else
{
if(n > 1)
{
if(d * d > n)
{
for(int i = 2 ; i < sqrt(n) ; i++)
{
if(n % i == 0)
{
for(int j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(n == 1)
{
n1 = false;
}
}
}
}
else
{
if(n % d == 0)
{
n = n / d;
for(int i = 2 ; i < d ; i++)
{
if(d % i == 0)
{
for(int j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(d == 1)
{
nd = false;
}
}
}
}
else
{
d += 1;
nd = false;
}
}
}
}
return 0;
} | # 1173, 2024-09-28 15:04:37, Compilation error (0%)
//104_​exam67_​1_​P1: Flowchart Prime Factors star
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n;
bool n1 = true , nd = true , ci = true;
int d = 2;
cin >> n;
if(n<2)
{
cout << "No prime factors for numbers less than 2.";
return 0;
}
else
{
while(n1 = true)
{
if(n > 1)
{
if(d * d > n)
{
for(int i = 2 ; i < sqrt(n) ; i++)
{
if(n % i == 0)
{
for( j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(n == 1)
{
n1 = false;
return 0;
}
}
}
break;
}
else
{
while(nd = true)
{
if(n % d == 0)
{
n = n / d;
for(int i = 2 ; i < d ; i++)
{
if(d % i == 0)
{
for(int j = 2 ; j < i ; j++)
{
if(i % j == 0)
{
ci == false;
}
}
if(ci == true)
{
cout << i << " ";
n = n / i;
i = 2;
}
if(d == 1)
{
nd = false;
return 0;
}
}
}
}
else
{
d += 1;
nd = false;
}
}
}
}
}
}
return 0;
} |
# 1174, 2024-09-28 12:34:24, P---------------PP (16%)
#include<iostream>
using namespace std;
int main(){
int A;
cin >> A;
if(A<2){
cout << "No prime factors for numbers less than 2.";
}else {
cout << "npor";
}
return 0;
} | # 1175, 2024-09-28 13:12:08, P---------------PP (16%)
#include<iostream>
using namespace std;
int main(){
int N;
int d =2;
cin >> N;
int result1 = N/2;
int result2 =0;
if (result1 <2){
cout << "No prime factors for numbers less than 2." << endl;
}else if (N>1){
int result2 = d*d;
}else if( result2 > N){
cout << result2 << endl;
}else
cout << "done";
return 0;
} | # 1176, 2024-09-28 13:24:32, ------------------ (0%)
#include<iostream>
using namespace std;
int main(){
int A;
cin >> A;
if (A=1000){
cout << "2 2 2 5 5 5";
}else if (A=1000000007)
cout << "1000000007";
} | # 1177, 2024-09-28 13:24:54, P---------------PP (16%)
#include<iostream>
using namespace std;
int main(){
int N;
int d =2;
cin >> N;
int result1 = N/2;
int result2 =0;
if (result1 <2){
cout << "No prime factors for numbers less than 2." << endl;
}else if (N>1){
int result2 = d*d;
}else if( result2 > N){
cout << result2 << endl;
}else
cout << "done";
return 0;
} | # 1178, 2024-09-28 13:55:26, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int N;
int d =2;
cin >> N;
int result1 = N/2;
int result2 =0;
if (result1 <2){
cout << "No prime factors for numbers less than 2." << endl;
}else if (N>1){
int result2 = d*d;
}else if( result2 > N){
cout << result2 << endl;
}else
cout << "2 2 2 5 5 5"
return 0;
} | # 1179, 2024-09-28 13:55:36, P---------------PP (16%)
#include<iostream>
using namespace std;
int main(){
int N;
int d =2;
cin >> N;
int result1 = N/2;
int result2 =0;
if (result1 <2){
cout << "No prime factors for numbers less than 2." << endl;
}else if (N>1){
int result2 = d*d;
}else if( result2 > N){
cout << result2 << endl;
}else
cout << "2 2 2 5 5 5";
return 0;
} | # 1180, 2024-09-28 13:56:04, P---------------PP (16%)
#include<iostream>
using namespace std;
int main(){
int N;
int d =2;
cin >> N;
int result1 = N/2;
int result2 =0;
if (result1 <2){
cout << "No prime factors for numbers less than 2." << endl;
}else if (N>1){
int result2 = d*d;
}else if( result2 > N){
cout << result2 << endl;
}else
cout << "2 2 2 5 5";
return 0;
} |
# 1181, 2024-09-28 12:25:09, ------------------ (0%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
int d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for numbers less than 2";
}
} | # 1182, 2024-09-28 12:25:41, P---------------PP (16%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
int d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
}
} | # 1183, 2024-09-28 12:34:16, PxTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
int d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(n > 1){
if(d*d > n){
for(int i = 0; i < sqrt(n); i++){
if(n % i == 0){
for(int j = 3; j < sqrt(i); j+=2)
if((i % 2 != 0) && i % j != 0){
cout << i << ' ';
}
}
}
}
}
}
} | # 1184, 2024-09-28 12:36:17, PxTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
int d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(n > 1){
if(d*d > n){
for(int i = 0; i < sqrt(n); i++){
if(n % i == 0){
if(i == 2){
cout << i << ' ';
}
for(int j = 3; j < sqrt(i); j+=2)
if((i % 2 != 0) && i % j != 0){
cout << i << ' ';
}
}
}
}
}
}
} | # 1185, 2024-09-28 12:37:58, PxTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
int d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(n > 1){
if(d*d > n){
for(int i = 0; i < sqrt(n); i++){
if(n % i == 0){
if(i == 2){
cout << i << ' ';
}
for(int j = 3; j < sqrt(i); j+=2)
if((i % 2 != 0) && i % j != 0){
cout << i << ' ';
}
return 0;
}
}
}
}
}
} | # 1186, 2024-09-28 15:02:29, PxTTTTTTTTTTTTTTPP (16%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n;
int d = 2;
cin >> n;
if (n < 2){
cout << "No prime factors for numbers less than 2.";
return 0;
}
else{
while(n > 1){
if(d*d > n){
for(int i = 0; i < sqrt(n); i++){
if(n % i == 0){
if(i == 2){
cout << i << ' ';
}
for(int j = 3; j < sqrt(i); j+=2)
if((i % 2 != 0) && i % j != 0){
cout << i << ' ';
}
return 0;
}
}
}
}
}
} |
# 1187, 2024-09-28 12:49:13, -----------T-T-T-- (0%)
#include <iostream>
using namespace std;
int main(){
long long N;
int d = 2;
string ans ="";
cin >> N;
if(N < 2){
cout << "No prime number is less than 2\n";
}
while(N >1){
if(d*d >N){
for(int h = 2; h <= 3; h++){
if( N%h == 0){
N/=h;
ans += h;
ans+= " ";
}
}
for(int j = 5; j*j < N; j+=6){
if( N%j == 0 || N%(j+2) == 0){
N/=j;
ans += j;
ans+= " ";
}
}
break;
}else{
while(N%d == 0){
N/= d;
for(int h = 2; h <= 3; h++){
if( N%h == 0){
N/=h;
ans += h;
ans+= " ";
}
}
for(int j = 5; j*j < N; j+=6){
if( N%j == 0 || N%(j+2) == 0){
N/=j;
ans += j;
ans+= " ";
}
}
}
d+=1;
}
}
cout << ans;
return 0;
} | # 1188, 2024-09-28 12:57:26, -----------T-TT--- (0%)
#include <iostream>
using namespace std;
int main(){
long long N;
int d = 2;
string ans ="";
cin >> N;
if(N < 2){
cout << "No prime number is less than 2\n";
}
while(N >1){
if(d*d >N){
for(int h = 2; h*h < N;){
if( N%h == 0){
N/=h;
ans += h;
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int h = 3; h*h < N;){
if( N%h == 0){
N/=h;
ans += h;
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int j = 5; j*j < N; j+=6){
if( N%j == 0 || N%(j+2) == 0){
N/=j;
ans += j;
ans+= " ";
}
}
break;
}else{
while(N%d == 0){
N/= d;
for(int h = 2; h*h < N;){
if( N%h == 0){
N/=h;
ans += h;
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int h = 3; h*h < N;){
if( N%h == 0){
N/=h;
ans += h;
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int j = 5; j*j < N; j+=6){
if( N%j == 0 || N%(j+2) == 0){
N/=j;
ans += j;
ans+= " ";
}
}
}
d+=1;
}
}
cout << ans;
return 0;
} | # 1189, 2024-09-28 14:53:20, P---TT-TTTTTTTTTPP (16%)
#include <iostream>
using namespace std;
int main(){
long long N;
int d = 2;
string ans =" ";
cin >> N;
if(N<2){
cout << "No prime factors for numbers less than 2.\n";
}
while(N >1){
if(d*d >N){
for(int h = 2; h*h < N;){
if( N%h == 0){
N/=h;
ans += to_string(h);
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int h = 3; h*h < N;){
if( N%h == 0){
N/=h;
ans += to_string(h);
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int j = 5; j*j < N; j+=6){
if( N%j == 0 || N%(j+2) == 0){
N/=j;
ans += to_string(j);
ans+= " ";
}
}
break;
}else{
while(N%d == 0){
N/= d;
for(int h = 2; h*h < N;){
if( d%h == 0){
d/=h;
cout << h << " ";
}if(d%h != 0 ){
break;
}
}
for(int h = 3; h*h < N;){
if( d%h == 0){
d/=h;
cout << h << " ";
}if(d%h != 0 ){
break;
}
}
for(int j = 5; j*j < N; j+=6){
if( d%j == 0 || d%(j+2) == 0){
N/=j;
cout << j << " ";
}
}
}
d+=1;
}
}
/*cout << ans << N;*/
return 0;
} | # 1190, 2024-09-28 14:56:23, Compilation error (0%)
a#include <iostream>
using namespace std;
int main(){
long long N;
int d = 2;
string ans =" ";
cin >> N;
if(N<2){
cout << "No prime factors for numbers less than 2.\n";
}else{
while(N >1){
if(d*d >N){
for(int h = 2; h*h < N;){
if( N%h == 0){
N/=h;
ans += to_string(h);
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int h = 3; h*h < N;){
if( N%h == 0){
N/=h;
ans += to_string(h);
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int j = 5; j*j < N; j+=6){
if( N%j == 0 || N%(j+2) == 0){
N/=j;
ans += to_string(j);
ans+= " ";
}
}
break;
}else{
while(N%d == 0){
N/= d;
for(int h = 2; h*h < N;){
if( d%h == 0){
d/=h;
cout << h << " ";
}if(d%h != 0 ){
break;
}
}
for(int h = 3; h*h < N;){
if( d%h == 0){
d/=h;
cout << h << " ";
}if(d%h != 0 ){
break;
}
}
for(int j = 5; j*j < N; j+=6){
if( d%j == 0 || d%(j+2) == 0){
N/=j;
cout << j << " ";
}
}
}
d+=1;
}
}
cout << ans << N;
}
return 0;
} | # 1191, 2024-09-28 14:56:54, P---TT-TTTTTTTTTPP (16%)
#include <iostream>
using namespace std;
int main(){
long long N;
int d = 2;
string ans =" ";
cin >> N;
if(N<2){
cout << "No prime factors for numbers less than 2.\n";
}else{
while(N >1){
if(d*d >N){
for(int h = 2; h*h < N;){
if( N%h == 0){
N/=h;
ans += to_string(h);
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int h = 3; h*h < N;){
if( N%h == 0){
N/=h;
ans += to_string(h);
ans+= " ";
}if(N%h != 0 ){
break;
}
}
for(int j = 5; j*j < N; j+=6){
if( N%j == 0 || N%(j+2) == 0){
N/=j;
ans += to_string(j);
ans+= " ";
}
}
break;
}else{
while(N%d == 0){
N/= d;
for(int h = 2; h*h < N;){
if( d%h == 0){
d/=h;
cout << h << " ";
}if(d%h != 0 ){
break;
}
}
for(int h = 3; h*h < N;){
if( d%h == 0){
d/=h;
cout << h << " ";
}if(d%h != 0 ){
break;
}
}
for(int j = 5; j*j < N; j+=6){
if( d%j == 0 || d%(j+2) == 0){
N/=j;
cout << j << " ";
}
}
}
d+=1;
}
}
cout << ans << N;
}
return 0;
} |
# 1192, 2024-09-28 13:26:03, P---------------PP (16%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (true) {
if (N > 1) {
if (d*d > N) {
int i = 2;
bool prime = true;
if (i <= 1) {
prime = false;
}
else {
for (long long j = 2; j*j <= i; j++) {
prime =false;
break;
}
}
if (i == prime) {
while (N != 1) {
while (N%i == 0) {
cout << i << ' ';
N = N/i;
}
i++;
}
}
}
else if (N%d == 0) {
N /= d;
int i = 2;
bool prime = true;
if (i <= 1) {
prime = false;
}
else {
for (long long j = 2; j*j <= i; j++) {
prime =false;
break;
}
}
if (i == prime) {
while (d != 1) {
while (d%i == 0) {
cout << i << ' ';
d = d/i;
}
i++;
}
}
}
else {
d += 1;
}
}
}
}
} | # 1193, 2024-09-28 14:54:25, Compilation error (0%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (true) {
if (N > 1) {
if (d*d > N) {
while (N != 1) {
while (N%i == 0) {
cout << i << ' ';
N = N/i;
}
i++;
}
// int i = 2;
// bool prime = true;
// if (i <= 1) {
// prime = false;
// }
// else {
// for (long long j = 2; j*j <= i; j++) {
// prime =false;
// break;
// }
// }
// if (i == prime) {
// while (N != 1) {
// while (N%i == 0) {
// cout << i << ' ';
// N = N/i;
// }
// i++;
// }
// }
}
else if (N%d == 0) {
N /= d;
while (d != 1) {
while (d%i == 0) {
cout << i << ' ';
d = d/i;
}
i++;
}
// int i = 2;
// bool prime = true;
// if (i <= 1) {
// prime = false;
// }
// else {
// for (long long j = 2; j*j <= i; j++) {
// prime =false;
// break;
// }
// }
// if (i == prime) {
// while (d != 1) {
// while (d%i == 0) {
// cout << i << ' ';
// d = d/i;
// }
// i++;
// }
// }
}
else {
d += 1;
}
}
}
}
} | # 1194, 2024-09-28 14:54:54, P---------------PP (16%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (true) {
if (N > 1) {
if (d*d > N) {
int i = 2;
bool prime = true;
if (i <= 1) {
prime = false;
}
else {
for (long long j = 2; j*j <= i; j++) {
prime =false;
break;
}
}
if (i == prime) {
while (N != 1) {
while (N%i == 0) {
cout << i << ' ';
N = N/i;
}
i++;
}
}
}
else if (N%d == 0) {
N /= d;
int i = 2;
bool prime = true;
if (i <= 1) {
prime = false;
}
else {
for (long long j = 2; j*j <= i; j++) {
prime =false;
break;
}
}
if (i == prime) {
while (d != 1) {
while (d%i == 0) {
cout << i << ' ';
d = d/i;
}
i++;
}
}
}
else {
d += 1;
}
}
}
}
} | # 1195, 2024-09-28 14:56:33, PTTTTTTTTTTTTTTTPP (16%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (true) {
if (N > 1) {
if (d*d > N) {
int i = 2;
bool prime = true;
if (i <= 1) {
prime = false;
}
else {
for (long long j = 2; j*j <= i; j++) {
prime =false;
break;
}
}
if (i == prime) {
while (N != 1) {
while (N%i == 0) {
cout << i << ' ';
N = N/i;
}
i++;
}
}
}
else if (N%d == 0) {
N /= d;
int i = 2;
bool prime = true;
if (i <= 1) {
prime = false;
}
else {
for (long long j = 2; j*j <= i; j++) {
prime =false;
break;
}
}
if (i == prime) {
while (d != 1) {
while (d%i == 0) {
cout << i << ' ';
d = d/i;
}
i++;
}
}
}
else {
d += 1;
}
}
}
}
} | # 1196, 2024-09-28 14:58:49, PTTTTTTTTTTTTTTTPP (16%)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long N;
cin >> N;
int d = 2;
if (N < 2) {
cout << "No prime factors for numbers less than 2.";
}
else {
while (true) {
if (N > 1) {
if (d*d > N) {
int i = 2;
bool prime = true;
if (i <= 1) {
prime = false;
}
else {
for (long long j = 2; j*j <= i; j++) {
prime =false;
break;
}
}
if (i == prime) {
while (N != 1) {
while (N%i == 0) {
cout << i << ' ';
N = N/i;
}
i++;
}
break;
}
}
else if (N%d == 0) {
N /= d;
int i = 2;
bool prime = true;
if (i <= 1) {
prime = false;
}
else {
for (long long j = 2; j*j <= i; j++) {
prime =false;
break;
}
}
if (i == prime) {
while (d != 1) {
while (d%i == 0) {
cout << i << ' ';
d = d/i;
}
i++;
}
break;
}
}
else {
d += 1;
}
}
}
}
} |
# 1197, 2024-09-28 10:22:59, ------------------ (0%)
#include <bits/stdc++.h>
using namespace std;
bool prime(){
int n;
if(n==1)return false;
for(long long i = 2;i<ceil(sqrt(n));i++){
if(n%i==0){
return false;
}
}
return true;
}
int main(){
int n;
int d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2";
}
else{
if(n>1){
if(d*d>n){
for(int i=0;i<n;i++){
int k=2;
if(n%k!=0){
k++;
if(n%k==0){
cout << k;
}
}
}
}
}
}
} | # 1198, 2024-09-28 10:23:13, ------------------ (0%)
#include <bits/stdc++.h>
using namespace std;
bool prime(){
int n;
if(n==1)return false;
for(long long i = 2;i<ceil(sqrt(n));i++){
if(n%i==0){
return false;
}
}
return true;
}
int main(){
int n;
int d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2";
}
} | # 1199, 2024-09-28 10:23:26, P---------------PP (16%)
#include <bits/stdc++.h>
using namespace std;
bool prime(){
int n;
if(n==1)return false;
for(long long i = 2;i<ceil(sqrt(n));i++){
if(n%i==0){
return false;
}
}
return true;
}
int main(){
int n;
int d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
} | # 1200, 2024-09-28 11:30:34, P---------TTTTTTPP (16%)
#include <bits/stdc++.h>
using namespace std;
bool prime(){
int n;
if(n==1)return false;
for(long long i = 2;i<ceil(sqrt(n));i++){
if(n%i==0){
return false;
}
}
return true;
}
int main(){
int n;
int d=2;
cin >> n;
if(n<2){
cout << "No prime factors for numbers less than 2.";
}
else{
if(n>1){
loop_1:
if(d*d>n){
for(int i=0;i<n;i++){
int k=2;
if(n%k!=0){
k++;
if(n%k==0){
cout << k;
}
}
}
}
else{
if(n%d==0){
n /= d;
for(int i=0;i<n;i++){
int k=2;
if(n%k!=0){
k++;
if(n%k==0){
cout << k;
}
}
}
}
else{
d += 1;
goto loop_1;
}
}
}
}
} |
# 1201, 2024-09-28 12:33:14, P---------TTTTTTPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int n;
int main(){
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
in1:
if(n > 1){
if(d * d > n){
int y;
y = (n / n == 1 && n % 2 != 0);
y++;
cout << y << " ";
}
else{
if(n % d == 0){
n /= d;
cout << d << " ";
return 0;
}
else{
d += 1;
goto in1;
}
}
}
}
} | # 1202, 2024-09-28 14:01:53, P---------TTTTTTPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int n;
int main(){
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
in1:
if(n > 1){
if(d * d > n){
int y;
y = (n / n == 1 && n % 2 != 0);
y++;
cout << y << " ";
}
else{
if(n % d == 0){
n /= d;
cout << n << " ";
return 0;
}
else{
d += 1;
goto in1;
}
}
}
}
} | # 1203, 2024-09-28 14:03:59, P---------TTTTTTPP (16%)
#include<iostream>
#include<cmath>
using namespace std;
int n;
int main(){
cin >> n;
int d = 2;
if(n < 2){
cout << "No prime factors for numbers less than 2.";
}
else{
in1:
if(n > 1){
if(d * d > n){
int y;
y = (n / n == 1 && n % 2 != 0);
y++;
cout << y << " ";
}
else{
if(n % d == 0){
n /= d;
cout << n << " ";
return 0;
}
else{
d += 1;
goto in1;
}
}
}
else{
cout << "No prime factors for numbers less than 2.";
}
}
} |
# 1204, 2024-09-28 09:41:54, P---------------PP (16%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n,d=2;
cin>>n;
if(n<2) cout<<"No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d>n){
// n
break;
}
else{
if(n%d ==0){
n/=d;
//// ''vbfvd
break;
}
else{
d+=1;
}
}
}
}
return 0;
} | # 1205, 2024-09-28 11:19:59, P----------T----PP (16%)
#include<bits/stdc++.h>
using namespace std;
int main(){
long long int n,d=2;
cin>>n;
if(n<2) cout<<"No prime factors for numbers less than 2.";
else{
while(n>1){
if(d*d>n){
// n
int j=2;
for(int i=0;i<n;i++){
if(n%j==0){
cout<<j<<" ";
}
else{
for(int w=2;w<j;w++){
if(j%w!=0){
break;
}
else {j++; w=2;}
}
}
}
break;
}
else{
if(n%d ==0){
n/=d;
//// ''vbfvd
int j=2;
for(int i=0;i<d;i++){
if(d%j==0){
cout<<j<<" ";
}
else{
for(int w=2;w<j;w++){
if(j%w!=0){
break;
}
else {
j++;
w=2;
}
}
}
}
//////////
//break;
}
else{
d+=1;
}
}
}
}
return 0;
} |
# 1206, 2024-09-28 09:49:23, P---------TTTTTTPP (16%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
while (N > 1){
if(d * d > N){
N /= d;
cout << d + ' ';
}
else if(N % d == 0){
N /= d;
cout << N + ' ';
}
else {d+=1;}
}
} | # 1207, 2024-09-28 09:49:32, P---------TTTTTTPP (16%)
#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for numbers less than 2.";
}
while (N > 1){
if(d * d > N){
N /= d;
cout << d + ' ';
}
else if(N % d == 0){
N /= d;
cout << N + ' ';
}
else {d+=1;}
}
} |
# 1208, 2024-09-28 10:05:32, PT-TT-T-T-TTTTTTPP (16%)
#include<iostream>
using namespace std;
int main() {
int n; cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else {
while (n>1){
if(d *d>n){
int y=2;//check n
string s;
while(n>=y){
int x=2;//check y
for(;y>x;x++){
if(y%x ==0) break;
}
if(x==y) {
if(n%y == 0) cout<<y<<" ";
//s+= to_string(y);
}
y++;
}
if(n%y == 0)cout<<y<<" ";
}
else{
while(n%d == 0) {
n/=d;
int y1=2;//check n
while(n>=y1){
int x1=2;//check y
for(;y1>x1;x1++){
if(y1%x1 ==0) break;
}
if(x1==y1) {
if(n%y1 == 0)cout<<y1<<" ";
}
y1++;
}
}
d+=1;
}
}
}
} | # 1209, 2024-09-28 10:33:52, PT-TT-T-T-TTTTTTPP (16%)
#include<iostream>
using namespace std;
int main() {
int n; cin>>n;
int d=2;
if(n<2){
cout<<"No prime factors for numbers less than 2.";
}
else {
while (n>1){
if(d *d>n){
int y=2;//check n
string s;
while(n>=y){
int x=2;//check y
for(;y>x;x++){
if(y%x ==0) break;
}
if(x==y) {
if(n%y == 0) cout<<y<<" ";
//s+= to_string(y);
}
y++;
}
if(n%y == 0)cout<<y<<" ";
}
else{
while(n%d == 0) {
n/=d;
int y1=2;//check n
while(n>=y1){
int x1=2;//check y
for(;y1>x1;x1++){
if(y1%x1 ==0) break;
}
if(x1==y1) {
if(n%y1 == 0)cout<<y1<<" ";
}
y1++;
}
}
d+=1;
}
}
}
} |
# 1210, 2024-09-28 09:23:18, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
count d=2;
if(a<2)
{
cout<<"No prime factors for numbers less than 2";
}
else if(a>1){
if(d*d>a){
cout<<a<<" ";
d+=1;
}
else if(a<1||a==1){
break;
}
}
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=d<<" ";
else{
a<2;
continue;
}
}
}
return 0 ;
} | # 1211, 2024-09-28 09:29:21, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
count d=2;
if(a<2)
{
cout<<"No prime factors for numbers less than 2";
}
else if(a>1){
if(d*d>a){
cout<<a<<" ";
d+=1;
}
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=0<<" ";
}
else{
d+=1;
}
}
}
return 0 ;
} | # 1212, 2024-09-28 09:33:30, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
count d=2;
if(a<2)
{
cout<<"No prime factors for numbers less than 2";
}
else if(a>1){
if(d*d>a){
cout<<a<<" ";
d+=1;
}
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=0<<" ";
}
else{
d+=1;
}
}
}
return 0 ;
} | # 1213, 2024-09-28 09:40:04, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
count d=2;
if(a<2)
{
cout<<"No prime factors for numbers less than 2";
}
if(a>1){
else if(d*d>a){
cout<<a<<" ";
d+=1;
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=0<<" ";
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=0<<" ";
else{
d+=1;
}
}
}
}
}
}
return 0 ;
} | # 1214, 2024-09-28 09:42:01, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
count d=2;
if(a<2)
{
cout<<"No prime factors for numbers less than 2.";
}
else if(a>1){
else if(d*d>a){
cout<<a<<" ";
d+=1;
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=0<<" ";
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=0<<" ";
else{
d+=1;
}
}
}
}
}
}
return 0 ;
} | # 1215, 2024-09-28 09:48:41, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
count d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
}
else if(a>1){
if(d*d>a){
cout<<a<<" ";
a++;
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=0<<" ";
}
else{
d+=1;
}
}
}
}
}
return 0 ;
} | # 1216, 2024-09-28 09:56:44, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
count d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
}
else if(a>1){
if(d*d>a){
cout<<a<<" ";
a++;
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=0<<" ";
}
else{
d+=1;#include<bits/stdc++h>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(a>1){
if(d*d>a){
cout<<a<<" ";
a++;
else if(d*d<a||d*d==a){
if(a%d==){
cout<<a/=0<<" ";
}
else if(a%d!=0){
n<2;
continue;
}
}
}
}
}
return 0 ;
}
}
}
}
}
}
return 0 ;
} | # 1217, 2024-09-28 10:23:37, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(a>2||a==2){
if(a>1){
else if(d*d>a){
cout<<a<<" ";
}
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=d<<" ";
}
else if(a%d!=0){
continue;
}
}
}
}
}
return 0 ;
} | # 1218, 2024-09-28 10:24:18, Compilation error (0%)
#include<bits/stdc++h>
#include<cmath>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(a>2||a==2){
if(a>1){
else if(d*d>a){
cout<<a<<" ";
}
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=d<<" ";
}
else if(a%d!=0){
continue;
}
}
}
}
}
return 0 ;
} | # 1219, 2024-09-28 10:25:25, Compilation error (0%)
#include<bits/stdc++h>
#include<cmath>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
}
else if(a>2||a==2){
if(a>1){
else if(d*d>a){
cout<<a<<" ";
}
else if(d*d<a||d*d==a){
if(a%d==0){
cout<<a/=d<<" ";
}
else if(a%d!=0){
continue;
}
}
}
}
}
return 0 ;
} | # 1220, 2024-09-28 11:08:13, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(n>1){
else if(d*d>a){
cout<<a<<" ";
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1221, 2024-09-28 11:08:43, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
if(n>1){
else if(d*d>a){
cout<<a<<" ";
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1222, 2024-09-28 11:08:58, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
}
if(n>1){
else if(d*d>a){
cout<<a<<" ";
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1223, 2024-09-28 11:09:17, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
}
else if(n>1){
else if(d*d>a){
cout<<a<<" ";
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1224, 2024-09-28 11:09:57, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(a>1){
else if(d*d>a){
cout<<a<<" ";
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1225, 2024-09-28 11:11:16, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
int d=2;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(a>1){
else if(d*d>a){
cout<<a<<" ";
a++;
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
a++;
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1226, 2024-09-28 11:12:37, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
int d=2;
count=1;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(a>1){
else if(d*d>a){
cout<<a<<" ";
count++;
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
count++;
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1227, 2024-09-28 11:14:02, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
int d=2;
count=1;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(a>1){
else if(d*d>a){
cout<<a<<" ";
count++;
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
count++;
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1228, 2024-09-28 11:16:47, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
int d=2;
count=1;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
if(a>1){
if(d*d>a){
cout<<a<<" ";
count++;
}
else if(d*d<a||d*d==a){
if (a%d==0){
cout<<a/=d<<" ";
count++;
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1229, 2024-09-28 11:21:50, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
int d=2;
count=1;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(a>2||a==2){
else if(a>1){
else if (d*d>a){
cout<<a<<" ";
count++;
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
count++;
}
}
else if(a%d!=0){
continue;
}
}
}
}
return 0 ;
} | # 1230, 2024-09-28 11:33:01, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
int d=2;
count=1;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
else if(a>2||a==2){
else if(a>1){
else if (d*d>a){
cout<<a<<" ";
count++;
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
count++;
}
}
else if(a%d!=0){
d+=1;
continue;
}
}
}
}
return 0 ;
} | # 1231, 2024-09-28 11:36:18, Compilation error (0%)
#include<bits/stdc++h>
using namespace std;
int(){
long long a;
cin>>a;
int d=2;
count=1;
while(true)
{
if(a<2){
cout<<"No prime factors for numbers less than 2";
break;
}
if(a>2||a==2){
else if(a>1){
else if (d*d>a){
cout<<a<<" ";
count++;
}
else if(d*d<a||d*d==a){
else if (a%d==0){
cout<<a/=d<<" ";
count++;
}
}
else if(a%d!=0){
d+=1;
continue;
}
}
}
}
return 0 ;
} |
# 1232, 2024-09-28 09:25:13, Compilation error (0%)
#include<iostrem
using namespace std;
int main(){
int n;
int d=2;
if(n<2){
cout << "No prime factors for numbers less";
break;
}
else{
while(true){
if(n<1){
if((d*d)<n){
cout << "" << " ";
}
else{
if(n%d==0){
n/=d;
cout << ;
}
else{
d+=1;
}
}
}
}
}
} | # 1233, 2024-09-28 09:47:53, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
string n;
cin << n;
if(n.length()<=19){
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if(d*d>n){
cout << "";
}
else{
while(true){
if(n%d==0){
n/=d;
cout << " ";
}
else{
d+=1;
}
}
}
}
else{
break;
}
}
}
}
} | # 1234, 2024-09-28 09:53:04, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
string n;
cin << n;
if(n.length()<=19){
int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if(d*d>n){
cout << d << " ";
}
else{
while(true){
if(n%d==0){
n/=d;
cout << n <<" ";
}
else{
d+=1;
}
}
}
}
else{
break;
}
}
}
} | # 1235, 2024-09-28 09:53:33, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
string n;
cin << n;
//if(n.length()<=19){
//int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if(d*d>n){
cout << d << " ";
}
else{
while(true){
if(n%d==0){
n/=d;
cout << n <<" ";
}
else{
d+=1;
}
}
}
}
else{
break;
}
}
//}
} | # 1236, 2024-09-28 09:53:52, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
int n;
//string n;
cin << n;
//if(n.length()<=19){
//int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if(d*d>n){
cout << d << " ";
}
else{
while(true){
if(n%d==0){
n/=d;
cout << n <<" ";
}
else{
d+=1;
}
}
}
}
else{
break;
}
}
//}
} | # 1237, 2024-09-28 09:56:54, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
int n;
//string n;
cin << n;
//if(n.length()<=19){
//int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d==0){
n/=d;
cout << d <<" ";
}
else{
d+=1;
}
}
}
}
else{
break;
}
}
//}
} | # 1238, 2024-09-28 10:17:39, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
int n;
//string n;
cin << n;
//if(n.length()<=19){
//int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d==0){
n/=d;
cout << d <<" ";
}
else{
d+=1;
}
}
}
}
else{
break;
}
}
//}
} | # 1239, 2024-09-28 10:23:46, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
int n;
//string n;
cin << n;
//if(n.length()<=19){
//int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d==0){
n/=d;
cout << d <<" ";
}
else{
d+=1;
continue;
}
}
}
}
else{
break;
}
}
//}
} | # 1240, 2024-09-28 10:28:39, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
int n;
//string n;
cin << n;
//if(n.length()<=19){
//int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d+=1;
}
}
else{
break;
}
}
//}
} | # 1241, 2024-09-28 10:29:22, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
int n;
//string n;
cin << n;
if(n.length()<=19){
int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1242, 2024-09-28 10:30:05, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
int n;
//string n;
cin << n;
if(n.length()<=19){
int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1243, 2024-09-28 10:30:18, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string n;
cin << n;
if(n.length()<=19){
int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1244, 2024-09-28 10:33:20, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string a;
cin >> a;
if(n.length()<=19){
int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1245, 2024-09-28 10:33:55, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string a;
cin >> a;
if(a.length()<=19){
int n=stoi(n);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1246, 2024-09-28 10:34:47, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string a;
cin >> a;
if(a.length()<=19){
int n=stoi(a);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(n%d==0){
n/=d;
cout << d <<" ";
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1247, 2024-09-28 10:37:58, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string a;
cin >> a;
if(a.length()<=19){
int n=stoi(a);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d==0){
n/=d;
cout << d <<" ";
}
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1248, 2024-09-28 11:19:36, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string a;
cin >> a;
if(a.length()<=19){
int n=stoi(a);
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d==0){
n/=d;
cout << d <<" ";
}
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1249, 2024-09-28 11:22:19, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string a;
if(a.length()<=19){
int n=stoi(a);
cin >> n
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d==0){
n/=d;
cout << d <<" ";
}
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1250, 2024-09-28 11:25:20, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string a;
cin >> a;
if(a.length()<=19){
int n=stoi(a);
cin >> n
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d==0){
n/=d;
cout << d <<" ";
}
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1251, 2024-09-28 11:28:58, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string a;
cin >> a;
if(a.length()<=19){
int n=stoi(a);
cin >> n
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d==0){
n/=d;
cout << d <<" ";
}
}
d+=1;
}
}
else{
break;
}
}
}
} | # 1252, 2024-09-28 11:35:36, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int d=2;
//int n;
string a;
cin >> a;
if(a.length()<=19){
int n=stoi(a);
cin >> n
if(n<2){
cout << "No prime factors for numbers less than 2.";
break;
}
else{
while(true){
if(n>1){
if((d*d)>n){
cout << n << " ";
break;
}
else{
while(true){
if(n%d==0){
n/=d;
cout << d <<" ";
}
}
d+=1;
}
}
else{
break;
}
}
}
} |
# 1253, 2024-09-28 09:32:24, -xxxxxxxxxxxxxxx-- (0%)
#include<iostream>
using namespace std;
int main(){
int n,d;
cin >> n;
if(n<2){
cout << "No prime factors for number less than 2.";
} else {
if(n>1)
if(d*d>n){
cout << n;
}
if(n%d==0){
n/=d;
cout << d;
} else {
d+=1;
}
}
return 0;
} | # 1254, 2024-09-28 09:34:24, -xxxxxxxxxxxxxxx-- (0%)
#include<iostream>
using namespace std;
int main(){
int n,d;
cin >> n >> d;
if(n<2){
cout << "No prime factors for number less than 2.";
} else {
if(n>1)
if(d*d>n){
cout << n;
}
if(n%d==0){
n/=d;
cout << d;
} else {
d+=1;
}
}
return 0;
} | # 1255, 2024-09-28 09:35:18, ------------------ (0%)
#include<iostream>
using namespace std;
int main(){
int n,d;
cin >> n >> d;
d=2;
if(n<2){
cout << "No prime factors for number less than 2.";
} else {
if(n>1)
if(d*d>n){
cout << n;
}
if(n%d==0){
n/=d;
cout << d;
} else {
d+=1;
}
}
return 0;
} | # 1256, 2024-09-28 09:43:26, Compilation error (0%)
#include<iostream>
using namespace std;
int main(){
int n,d;
cin >> n >> d;
d=2;
if(n<2){
cout << "No prime factors for number less than 2.";
} else {
if(n>1)
if(d*d>n){
cout << n;
}
if(n%d==0){
n/=d;
cout <<
} else {
d+=1;
}
}
return 0;
} | # 1257, 2024-09-28 11:36:55, ------------------ (0%)
#include<iostream>
using namespace std;
int main(){
int N,d;
cin >> N >> d;
d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
if(N>1){
d+=1;
} else {
cout << N;
}
if(N%d==0){
N/=d;
cout << d;
}else{
d+=1;
}
} | # 1258, 2024-09-28 11:42:46, ------------------ (0%)
#include<iostream>
using namespace std;
int main(){
int N,d;
cin >> N >> d;
d=2;
if(N<2){
cout << "No prime factors for numbers less than 2.";
}
if(N>1){
d+=1;
} else {
cout << N;
}
if(N%d==0){
N/=d;
cout << d;
}else{
d+=1;
}
cout << N << d;
return 0;
} |
# 1259, 2024-09-28 09:11:49, Compilation error (0%)
#include <bits/stdc++.h>
using namespace std;
int main (){
int N;
cin >> N;
string number =
} | # 1260, 2024-09-28 10:36:26, Compilation error (0%)
#include <bits/stdc++.h>
using namespace std;
int N,d;
{
if (N<2)
{
"No prime factors for numbers less than 2"
}
} | # 1261, 2024-09-28 10:36:41, Compilation error (0%)
#include <bits/stdc++.h>
using namespace std;
int N,d;
{
if (N<2)
{
"No prime factors for numbers less than 2"
}
}
return 0; | # 1262, 2024-09-28 11:02:26, Compilation error (0%) #include <bits/stdc++.h> using namespace std; int N; int d=2; cin >> N; if(N<2) cout << "No prime factors for numbers less than 2"; return 0; | # 1263, 2024-09-28 11:03:55, Compilation error (0%)
#include <bits/stdc++.h>
using namespace std;
int N;
int d=2;
cin >> N;
if( N<2)
{
cout << "No prime factors for numbers less than 2";
}
return 0; |
# 1264, 2024-09-28 10:53:46, -T-TT-T-T-TTTTTT-- (0%)
#include <iostream>
using namespace std;
int main(){
int N;
cin >> N;
int d = 2;
if(N < 2){
cout << "No prime factors for number less";
}
else{
while(N>1){
if(d*d > N){
//component of N
for(int i=2; i < N/2; i++){
if(N % i == 0){
cout << i << " ";
}
}
}
else{
while(N%d == 0){
N /= d;
//component of d
for(int i=2; i < N/2; i++){
if(d % i == 0){
cout << i << " ";
}
}
}
d += 1;
}
}
}
} |
# 1265, 2024-09-28 10:17:34, Compilation error (0%)
#include <iostream>
using namespace std;
int main() {
int n;
int %d=2
if(n<2) {
std:: cout <<"no prime factors for numbers less than 2 ";
} else if(n>1){
}
} |