#include <iostream>
#include <cmath>
int main()
{
using namespace std ;
//initialize some long ass integers
long long primeanswer = 1,p = 1,sqrt_of_i;
//flag for counting a discovery of a factor
int factorcount = 0;
//for loop counts down in twos from an odd number i is number to check
for (long long i=74;i>0; i=i-2)
{
//reset factor count flag to zero
factorcount =0;
//squaring i means that finding a factor of i wont take as long
sqrt_of_i = sqrt(i);
//loop usues p to get numbers fo checking against square of i
for(long long p=1; p<=sqrt_of_i; p++ )
{
//if there is a remainder of 0 when diveded...
if((i%p)==0)
{
//then a factor has been found, the integer is incremented
factorcount++;
//if there is more than two factors the we are not dealing with a prime
if(factorcount>=2)
{
break;
}
}
}
//if we found only one factor (1) then we output the prime :D
if(factorcount<=1)
{
primeanswer = i;
cout<<primeanswer<<" ";
}
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CiAKaW50IG1haW4oKQp7CiAgICB1c2luZyBuYW1lc3BhY2Ugc3RkIDsKIAogICAgLy9pbml0aWFsaXplIHNvbWUgbG9uZyBhc3MgaW50ZWdlcnMKICAgIGxvbmcgbG9uZyBwcmltZWFuc3dlciA9IDEscCA9IDEsc3FydF9vZl9pOwogICAgLy9mbGFnIGZvciBjb3VudGluZyBhIGRpc2NvdmVyeSBvZiBhIGZhY3RvcgogICAgaW50IGZhY3RvcmNvdW50ID0gMDsKICAgIC8vZm9yIGxvb3AgY291bnRzIGRvd24gaW4gdHdvcyBmcm9tIGFuIG9kZCBudW1iZXIgaSBpcyBudW1iZXIgdG8gY2hlY2sKICAgIGZvciAobG9uZyBsb25nIGk9NzQ7aT4wOyBpPWktMikKICAgIHsKICAgICAgICAvL3Jlc2V0IGZhY3RvciBjb3VudCBmbGFnIHRvIHplcm8KICAgICAgICBmYWN0b3Jjb3VudCA9MDsKICAgICAgICAvL3NxdWFyaW5nIGkgbWVhbnMgdGhhdCBmaW5kaW5nIGEgZmFjdG9yIG9mIGkgd29udCB0YWtlIGFzIGxvbmcKICAgICAgICBzcXJ0X29mX2kgPSBzcXJ0KGkpOwogICAgICAgIC8vbG9vcCB1c3VlcyBwIHRvIGdldCBudW1iZXJzIGZvIGNoZWNraW5nIGFnYWluc3Qgc3F1YXJlIG9mIGkKICAgICAgICBmb3IobG9uZyBsb25nIHA9MTsgcDw9c3FydF9vZl9pOyBwKysgKQogICAgICAgIHsKICAgICAgICAgICAgLy9pZiB0aGVyZSBpcyBhIHJlbWFpbmRlciBvZiAwIHdoZW4gZGl2ZWRlZC4uLgogICAgICAgICAgICBpZigoaSVwKT09MCkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgLy90aGVuIGEgZmFjdG9yIGhhcyBiZWVuIGZvdW5kLCB0aGUgaW50ZWdlciBpcyBpbmNyZW1lbnRlZAogICAgICAgICAgICAgICAgZmFjdG9yY291bnQrKzsKICAgICAgICAgICAgICAgIC8vaWYgdGhlcmUgaXMgbW9yZSB0aGFuIHR3byBmYWN0b3JzIHRoZSB3ZSBhcmUgbm90IGRlYWxpbmcgd2l0aCBhIHByaW1lCiAgICAgICAgICAgICAgICBpZihmYWN0b3Jjb3VudD49MikKICAgICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogCiAgICAgICAgfQogICAgICAgIC8vaWYgd2UgZm91bmQgb25seSBvbmUgZmFjdG9yICgxKSB0aGVuIHdlIG91dHB1dCB0aGUgcHJpbWUgOkQKICAgICAgICBpZihmYWN0b3Jjb3VudDw9MSkKICAgICAgICB7CiAgICAgICAgICAgIHByaW1lYW5zd2VyID0gaTsKICAgICAgICAgICAgICAgY291dDw8cHJpbWVhbnN3ZXI8PCIgIjsKICAgICAgICB9CiAgICB9CiAKfQo=