Happy New Year
sum of maximum possible number of prime numbers
/*####################################
MD MEZBAH UDDIN
Nantong University(China)
CSE ######################################*/
#include<bits/stdc++.h>
using namespace std;
void sumofprimNumber(int n)
{
cout<<n/2<<endl;
while(n>3)
{
cout<<2<<" ";
n-=2;
}
cout<<n;
cout<<endl;
}
int main()
{
int n;
cin>>n;
sumofprimNumber(n);
}
Comments
Post a Comment