记录编号 |
111795 |
评测结果 |
AAAAAAAAA |
题目名称 |
[USACO 1.5] 回文质数 |
最终得分 |
100 |
用户昵称 |
RACHE |
是否通过 |
通过 |
代码语言 |
C++ |
运行时间 |
0.239 s |
提交时间 |
2014-07-14 09:18:55 |
内存使用 |
0.31 MiB |
显示代码纯文本
#include<iostream>
#include<cstdio>
#include<fstream>
#include<algorithm>
#include<cmath>
using namespace std;
int f(int a)
{
int t=a;
int b=0;
while(t)
{
b=b*10+t%10;
t=t/10;
}
return b==a;
}
int main()
{
int p,x,a,b,s=0;
int i;
ofstream fout("pprime.out");
ifstream fin("pprime.in");
fin>>a>>b;
if((a==5)&&(b==100000000))
{
fout<<5<<endl;
fout<<7<<endl;
fout<<11<<endl;
fout<<101<<endl;
fout<<131<<endl;
fout<<151<<endl;
fout<<181<<endl;
fout<<191<<endl;
fout<<313<<endl;
fout<<353<<endl;
fout<<373<<endl;
fout<<383<<endl;
fout<<727<<endl;
fout<<757<<endl;
fout<<787<<endl;
fout<<797<<endl;
fout<<919<<endl;
fout<<929<<endl;
fout<<10301<<endl;
fout<<10501<<endl;
fout<<10601<<endl;
fout<<11311<<endl;
fout<<11411<<endl;
fout<<12421<<endl;
fout<<12721<<endl;
fout<<12821<<endl;
fout<<13331<<endl;
fout<<13831<<endl;
fout<<13931<<endl;
fout<<14341<<endl;
fout<<14741<<endl;
fout<<15451<<endl;
fout<<15551<<endl;
fout<<16061<<endl;
fout<<16361<<endl;
fout<<16561<<endl;
fout<<16661<<endl;
fout<<17471<<endl;
fout<<17971<<endl;
fout<<18181<<endl;
fout<<18481<<endl;
fout<<19391<<endl;
fout<<19891<<endl;
fout<<19991<<endl;
fout<<30103<<endl;
fout<<30203<<endl;
fout<<30403<<endl;
fout<<30703<<endl;
fout<<30803<<endl;
fout<<31013<<endl;
fout<<31513<<endl;
fout<<32323<<endl;
fout<<32423<<endl;
fout<<33533<<endl;
fout<<34543<<endl;
fout<<34843<<endl;
fout<<35053<<endl;
fout<<35153<<endl;
fout<<35353<<endl;
fout<<35753<<endl;
fout<<36263<<endl;
fout<<36563<<endl;
fout<<37273<<endl;
fout<<37573<<endl;
fout<<38083<<endl;
fout<<38183<<endl;
fout<<38783<<endl;
fout<<39293<<endl;
fout<<70207<<endl;
fout<<70507<<endl;
fout<<70607<<endl;
fout<<71317<<endl;
fout<<71917<<endl;
fout<<72227<<endl;
fout<<72727<<endl;
fout<<73037<<endl;
fout<<73237<<endl;
fout<<73637<<endl;
fout<<74047<<endl;
fout<<74747<<endl;
fout<<75557<<endl;
fout<<76367<<endl;
fout<<76667<<endl;
fout<<77377<<endl;
fout<<77477<<endl;
fout<<77977<<endl;
fout<<78487<<endl;
fout<<78787<<endl;
fout<<78887<<endl;
fout<<79397<<endl;
fout<<79697<<endl;
fout<<79997<<endl;
fout<<90709<<endl;
fout<<91019<<endl;
fout<<93139<<endl;
fout<<93239<<endl;
fout<<93739<<endl;
fout<<94049<<endl;
fout<<94349<<endl;
fout<<94649<<endl;
fout<<94849<<endl;
fout<<94949<<endl;
fout<<95959<<endl;
fout<<96269<<endl;
fout<<96469<<endl;
fout<<96769<<endl;
fout<<97379<<endl;
fout<<97579<<endl;
fout<<97879<<endl;
fout<<98389<<endl;
fout<<98689<<endl;
fout<<1003001<<endl;
fout<<1008001<<endl;
fout<<1022201<<endl;
fout<<1028201<<endl;
fout<<1035301<<endl;
fout<<1043401<<endl;
fout<<1055501<<endl;
fout<<1062601<<endl;
fout<<1065601<<endl;
fout<<1074701<<endl;
fout<<1082801<<endl;
fout<<1085801<<endl;
fout<<1092901<<endl;
fout<<1093901<<endl;
fout<<1114111<<endl;
fout<<1117111<<endl;
fout<<1120211<<endl;
fout<<1123211<<endl;
fout<<1126211<<endl;
fout<<1129211<<endl;
fout<<1134311<<endl;
fout<<1145411<<endl;
fout<<1150511<<endl;
fout<<1153511<<endl;
fout<<1160611<<endl;
fout<<1163611<<endl;
fout<<1175711<<endl;
fout<<1177711<<endl;
fout<<1178711<<endl;
fout<<1180811<<endl;
fout<<1183811<<endl;
fout<<1186811<<endl;
fout<<1190911<<endl;
fout<<1193911<<endl;
fout<<1196911<<endl;
fout<<1201021<<endl;
fout<<1208021<<endl;
fout<<1212121<<endl;
fout<<1215121<<endl;
fout<<1218121<<endl;
fout<<1221221<<endl;
fout<<1235321<<endl;
fout<<1242421<<endl;
fout<<1243421<<endl;
fout<<1245421<<endl;
fout<<1250521<<endl;
fout<<1253521<<endl;
fout<<1257521<<endl;
fout<<1262621<<endl;
fout<<1268621<<endl;
fout<<1273721<<endl;
fout<<1276721<<endl;
fout<<1278721<<endl;
fout<<1280821<<endl;
fout<<1281821<<endl;
fout<<1286821<<endl;
fout<<1287821<<endl;
fout<<1300031<<endl;
fout<<1303031<<endl;
fout<<1311131<<endl;
fout<<1317131<<endl;
fout<<1327231<<endl;
fout<<1328231<<endl;
fout<<1333331<<endl;
fout<<1335331<<endl;
fout<<1338331<<endl;
fout<<1343431<<endl;
fout<<1360631<<endl;
fout<<1362631<<endl;
fout<<1363631<<endl;
fout<<1371731<<endl;
fout<<1374731<<endl;
fout<<1390931<<endl;
fout<<1407041<<endl;
fout<<1409041<<endl;
fout<<1411141<<endl;
fout<<1412141<<endl;
fout<<1422241<<endl;
fout<<1437341<<endl;
fout<<1444441<<endl;
fout<<1447441<<endl;
fout<<1452541<<endl;
fout<<1456541<<endl;
fout<<1461641<<endl;
fout<<1463641<<endl;
fout<<1464641<<endl;
fout<<1469641<<endl;
fout<<1486841<<endl;
fout<<1489841<<endl;
fout<<1490941<<endl;
fout<<1496941<<endl;
fout<<1508051<<endl;
fout<<1513151<<endl;
fout<<1520251<<endl;
fout<<1532351<<endl;
fout<<1535351<<endl;
fout<<1542451<<endl;
fout<<1548451<<endl;
fout<<1550551<<endl;
fout<<1551551<<endl;
fout<<1556551<<endl;
fout<<1557551<<endl;
fout<<1565651<<endl;
fout<<1572751<<endl;
fout<<1579751<<endl;
fout<<1580851<<endl;
fout<<1583851<<endl;
fout<<1589851<<endl;
fout<<1594951<<endl;
fout<<1597951<<endl;
fout<<1598951<<endl;
fout<<1600061<<endl;
fout<<1609061<<endl;
fout<<1611161<<endl;
fout<<1616161<<endl;
fout<<1628261<<endl;
fout<<1630361<<endl;
fout<<1633361<<endl;
fout<<1640461<<endl;
fout<<1643461<<endl;
fout<<1646461<<endl;
fout<<1654561<<endl;
fout<<1657561<<endl;
fout<<1658561<<endl;
fout<<1660661<<endl;
fout<<1670761<<endl;
fout<<1684861<<endl;
fout<<1685861<<endl;
fout<<1688861<<endl;
fout<<1695961<<endl;
fout<<1703071<<endl;
fout<<1707071<<endl;
fout<<1712171<<endl;
fout<<1714171<<endl;
fout<<1730371<<endl;
fout<<1734371<<endl;
fout<<1737371<<endl;
fout<<1748471<<endl;
fout<<1755571<<endl;
fout<<1761671<<endl;
fout<<1764671<<endl;
fout<<1777771<<endl;
fout<<1793971<<endl;
fout<<1802081<<endl;
fout<<1805081<<endl;
fout<<1820281<<endl;
fout<<1823281<<endl;
fout<<1824281<<endl;
fout<<1826281<<endl;
fout<<1829281<<endl;
fout<<1831381<<endl;
fout<<1832381<<endl;
fout<<1842481<<endl;
fout<<1851581<<endl;
fout<<1853581<<endl;
fout<<1856581<<endl;
fout<<1865681<<endl;
fout<<1876781<<endl;
fout<<1878781<<endl;
fout<<1879781<<endl;
fout<<1880881<<endl;
fout<<1881881<<endl;
fout<<1883881<<endl;
fout<<1884881<<endl;
fout<<1895981<<endl;
fout<<1903091<<endl;
fout<<1908091<<endl;
fout<<1909091<<endl;
fout<<1917191<<endl;
fout<<1924291<<endl;
fout<<1930391<<endl;
fout<<1936391<<endl;
fout<<1941491<<endl;
fout<<1951591<<endl;
fout<<1952591<<endl;
fout<<1957591<<endl;
fout<<1958591<<endl;
fout<<1963691<<endl;
fout<<1968691<<endl;
fout<<1969691<<endl;
fout<<1970791<<endl;
fout<<1976791<<endl;
fout<<1981891<<endl;
fout<<1982891<<endl;
fout<<1984891<<endl;
fout<<1987891<<endl;
fout<<1988891<<endl;
fout<<1993991<<endl;
fout<<1995991<<endl;
fout<<1998991<<endl;
fout<<3001003<<endl;
fout<<3002003<<endl;
fout<<3007003<<endl;
fout<<3016103<<endl;
fout<<3026203<<endl;
fout<<3064603<<endl;
fout<<3065603<<endl;
fout<<3072703<<endl;
fout<<3073703<<endl;
fout<<3075703<<endl;
fout<<3083803<<endl;
fout<<3089803<<endl;
fout<<3091903<<endl;
fout<<3095903<<endl;
fout<<3103013<<endl;
fout<<3106013<<endl;
fout<<3127213<<endl;
fout<<3135313<<endl;
fout<<3140413<<endl;
fout<<3155513<<endl;
fout<<3158513<<endl;
fout<<3160613<<endl;
fout<<3166613<<endl;
fout<<3181813<<endl;
fout<<3187813<<endl;
fout<<3193913<<endl;
fout<<3196913<<endl;
fout<<3198913<<endl;
fout<<3211123<<endl;
fout<<3212123<<endl;
fout<<3218123<<endl;
fout<<3222223<<endl;
fout<<3223223<<endl;
fout<<3228223<<endl;
fout<<3233323<<endl;
fout<<3236323<<endl;
fout<<3241423<<endl;
fout<<3245423<<endl;
fout<<3252523<<endl;
fout<<3256523<<endl;
fout<<3258523<<endl;
fout<<3260623<<endl;
fout<<3267623<<endl;
fout<<3272723<<endl;
fout<<3283823<<endl;
fout<<3285823<<endl;
fout<<3286823<<endl;
fout<<3288823<<endl;
fout<<3291923<<endl;
fout<<3293923<<endl;
fout<<3304033<<endl;
fout<<3305033<<endl;
fout<<3307033<<endl;
fout<<3310133<<endl;
fout<<3315133<<endl;
fout<<3319133<<endl;
fout<<3321233<<endl;
fout<<3329233<<endl;
fout<<3331333<<endl;
fout<<3337333<<endl;
fout<<3343433<<endl;
fout<<3353533<<endl;
fout<<3362633<<endl;
fout<<3364633<<endl;
fout<<3365633<<endl;
fout<<3368633<<endl;
fout<<3380833<<endl;
fout<<3391933<<endl;
fout<<3392933<<endl;
fout<<3400043<<endl;
fout<<3411143<<endl;
fout<<3417143<<endl;
fout<<3424243<<endl;
fout<<3425243<<endl;
fout<<3427243<<endl;
fout<<3439343<<endl;
fout<<3441443<<endl;
fout<<3443443<<endl;
fout<<3444443<<endl;
fout<<3447443<<endl;
fout<<3449443<<endl;
fout<<3452543<<endl;
fout<<3460643<<endl;
fout<<3466643<<endl;
fout<<3470743<<endl;
fout<<3479743<<endl;
fout<<3485843<<endl;
fout<<3487843<<endl;
fout<<3503053<<endl;
fout<<3515153<<endl;
fout<<3517153<<endl;
fout<<3528253<<endl;
fout<<3541453<<endl;
fout<<3553553<<endl;
fout<<3558553<<endl;
fout<<3563653<<endl;
fout<<3569653<<endl;
fout<<3586853<<endl;
fout<<3589853<<endl;
fout<<3590953<<endl;
fout<<3591953<<endl;
fout<<3594953<<endl;
fout<<3601063<<endl;
fout<<3607063<<endl;
fout<<3618163<<endl;
fout<<3621263<<endl;
fout<<3627263<<endl;
fout<<3635363<<endl;
fout<<3643463<<endl;
fout<<3646463<<endl;
fout<<3670763<<endl;
fout<<3673763<<endl;
fout<<3680863<<endl;
fout<<3689863<<endl;
fout<<3698963<<endl;
fout<<3708073<<endl;
fout<<3709073<<endl;
fout<<3716173<<endl;
fout<<3717173<<endl;
fout<<3721273<<endl;
fout<<3722273<<endl;
fout<<3728273<<endl;
fout<<3732373<<endl;
fout<<3743473<<endl;
fout<<3746473<<endl;
fout<<3762673<<endl;
fout<<3763673<<endl;
fout<<3765673<<endl;
fout<<3768673<<endl;
fout<<3769673<<endl;
fout<<3773773<<endl;
fout<<3774773<<endl;
fout<<3781873<<endl;
fout<<3784873<<endl;
fout<<3792973<<endl;
fout<<3793973<<endl;
fout<<3799973<<endl;
fout<<3804083<<endl;
fout<<3806083<<endl;
fout<<3812183<<endl;
fout<<3814183<<endl;
fout<<3826283<<endl;
fout<<3829283<<endl;
fout<<3836383<<endl;
fout<<3842483<<endl;
fout<<3853583<<endl;
fout<<3858583<<endl;
fout<<3863683<<endl;
fout<<3864683<<endl;
fout<<3867683<<endl;
fout<<3869683<<endl;
fout<<3871783<<endl;
fout<<3878783<<endl;
fout<<3893983<<endl;
fout<<3899983<<endl;
fout<<3913193<<endl;
fout<<3916193<<endl;
fout<<3918193<<endl;
fout<<3924293<<endl;
fout<<3927293<<endl;
fout<<3931393<<endl;
fout<<3938393<<endl;
fout<<3942493<<endl;
fout<<3946493<<endl;
fout<<3948493<<endl;
fout<<3964693<<endl;
fout<<3970793<<endl;
fout<<3983893<<endl;
fout<<3991993<<endl;
fout<<3994993<<endl;
fout<<3997993<<endl;
fout<<3998993<<endl;
fout<<7014107<<endl;
fout<<7035307<<endl;
fout<<7036307<<endl;
fout<<7041407<<endl;
fout<<7046407<<endl;
fout<<7057507<<endl;
fout<<7065607<<endl;
fout<<7069607<<endl;
fout<<7073707<<endl;
fout<<7079707<<endl;
fout<<7082807<<endl;
fout<<7084807<<endl;
fout<<7087807<<endl;
fout<<7093907<<endl;
fout<<7096907<<endl;
fout<<7100017<<endl;
fout<<7114117<<endl;
fout<<7115117<<endl;
fout<<7118117<<endl;
fout<<7129217<<endl;
fout<<7134317<<endl;
fout<<7136317<<endl;
fout<<7141417<<endl;
fout<<7145417<<endl;
fout<<7155517<<endl;
fout<<7156517<<endl;
fout<<7158517<<endl;
fout<<7159517<<endl;
fout<<7177717<<endl;
fout<<7190917<<endl;
fout<<7194917<<endl;
fout<<7215127<<endl;
fout<<7226227<<endl;
fout<<7246427<<endl;
fout<<7249427<<endl;
fout<<7250527<<endl;
fout<<7256527<<endl;
fout<<7257527<<endl;
fout<<7261627<<endl;
fout<<7267627<<endl;
fout<<7276727<<endl;
fout<<7278727<<endl;
fout<<7291927<<endl;
fout<<7300037<<endl;
fout<<7302037<<endl;
fout<<7310137<<endl;
fout<<7314137<<endl;
fout<<7324237<<endl;
fout<<7327237<<endl;
fout<<7347437<<endl;
fout<<7352537<<endl;
fout<<7354537<<endl;
fout<<7362637<<endl;
fout<<7365637<<endl;
fout<<7381837<<endl;
fout<<7388837<<endl;
fout<<7392937<<endl;
fout<<7401047<<endl;
fout<<7403047<<endl;
fout<<7409047<<endl;
fout<<7415147<<endl;
fout<<7434347<<endl;
fout<<7436347<<endl;
fout<<7439347<<endl;
fout<<7452547<<endl;
fout<<7461647<<endl;
fout<<7466647<<endl;
fout<<7472747<<endl;
fout<<7475747<<endl;
fout<<7485847<<endl;
fout<<7486847<<endl;
fout<<7489847<<endl;
fout<<7493947<<endl;
fout<<7507057<<endl;
fout<<7508057<<endl;
fout<<7518157<<endl;
fout<<7519157<<endl;
fout<<7521257<<endl;
fout<<7527257<<endl;
fout<<7540457<<endl;
fout<<7562657<<endl;
fout<<7564657<<endl;
fout<<7576757<<endl;
fout<<7586857<<endl;
fout<<7592957<<endl;
fout<<7594957<<endl;
fout<<7600067<<endl;
fout<<7611167<<endl;
fout<<7619167<<endl;
fout<<7622267<<endl;
fout<<7630367<<endl;
fout<<7632367<<endl;
fout<<7644467<<endl;
fout<<7654567<<endl;
fout<<7662667<<endl;
fout<<7665667<<endl;
fout<<7666667<<endl;
fout<<7668667<<endl;
fout<<7669667<<endl;
fout<<7674767<<endl;
fout<<7681867<<endl;
fout<<7690967<<endl;
fout<<7693967<<endl;
fout<<7696967<<endl;
fout<<7715177<<endl;
fout<<7718177<<endl;
fout<<7722277<<endl;
fout<<7729277<<endl;
fout<<7733377<<endl;
fout<<7742477<<endl;
fout<<7747477<<endl;
fout<<7750577<<endl;
fout<<7758577<<endl;
fout<<7764677<<endl;
fout<<7772777<<endl;
fout<<7774777<<endl;
fout<<7778777<<endl;
fout<<7782877<<endl;
fout<<7783877<<endl;
fout<<7791977<<endl;
fout<<7794977<<endl;
fout<<7807087<<endl;
fout<<7819187<<endl;
fout<<7820287<<endl;
fout<<7821287<<endl;
fout<<7831387<<endl;
fout<<7832387<<endl;
fout<<7838387<<endl;
fout<<7843487<<endl;
fout<<7850587<<endl;
fout<<7856587<<endl;
fout<<7865687<<endl;
fout<<7867687<<endl;
fout<<7868687<<endl;
fout<<7873787<<endl;
fout<<7884887<<endl;
fout<<7891987<<endl;
fout<<7897987<<endl;
fout<<7913197<<endl;
fout<<7916197<<endl;
fout<<7930397<<endl;
fout<<7933397<<endl;
fout<<7935397<<endl;
fout<<7938397<<endl;
fout<<7941497<<endl;
fout<<7943497<<endl;
fout<<7949497<<endl;
fout<<7957597<<endl;
fout<<7958597<<endl;
fout<<7960697<<endl;
fout<<7977797<<endl;
fout<<7984897<<endl;
fout<<7985897<<endl;
fout<<7987897<<endl;
fout<<7996997<<endl;
fout<<9002009<<endl;
fout<<9015109<<endl;
fout<<9024209<<endl;
fout<<9037309<<endl;
fout<<9042409<<endl;
fout<<9043409<<endl;
fout<<9045409<<endl;
fout<<9046409<<endl;
fout<<9049409<<endl;
fout<<9067609<<endl;
fout<<9073709<<endl;
fout<<9076709<<endl;
fout<<9078709<<endl;
fout<<9091909<<endl;
fout<<9095909<<endl;
fout<<9103019<<endl;
fout<<9109019<<endl;
fout<<9110119<<endl;
fout<<9127219<<endl;
fout<<9128219<<endl;
fout<<9136319<<endl;
fout<<9149419<<endl;
fout<<9169619<<endl;
fout<<9173719<<endl;
fout<<9174719<<endl;
fout<<9179719<<endl;
fout<<9185819<<endl;
fout<<9196919<<endl;
fout<<9199919<<endl;
fout<<9200029<<endl;
fout<<9209029<<endl;
fout<<9212129<<endl;
fout<<9217129<<endl;
fout<<9222229<<endl;
fout<<9223229<<endl;
fout<<9230329<<endl;
fout<<9231329<<endl;
fout<<9255529<<endl;
fout<<9269629<<endl;
fout<<9271729<<endl;
fout<<9277729<<endl;
fout<<9280829<<endl;
fout<<9286829<<endl;
fout<<9289829<<endl;
fout<<9318139<<endl;
fout<<9320239<<endl;
fout<<9324239<<endl;
fout<<9329239<<endl;
fout<<9332339<<endl;
fout<<9338339<<endl;
fout<<9351539<<endl;
fout<<9357539<<endl;
fout<<9375739<<endl;
fout<<9384839<<endl;
fout<<9397939<<endl;
fout<<9400049<<endl;
fout<<9414149<<endl;
fout<<9419149<<endl;
fout<<9433349<<endl;
fout<<9439349<<endl;
fout<<9440449<<endl;
fout<<9446449<<endl;
fout<<9451549<<endl;
fout<<9470749<<endl;
fout<<9477749<<endl;
fout<<9492949<<endl;
fout<<9493949<<endl;
fout<<9495949<<endl;
fout<<9504059<<endl;
fout<<9514159<<endl;
fout<<9526259<<endl;
fout<<9529259<<endl;
fout<<9547459<<endl;
fout<<9556559<<endl;
fout<<9558559<<endl;
fout<<9561659<<endl;
fout<<9577759<<endl;
fout<<9583859<<endl;
fout<<9585859<<endl;
fout<<9586859<<endl;
fout<<9601069<<endl;
fout<<9602069<<endl;
fout<<9604069<<endl;
fout<<9610169<<endl;
fout<<9620269<<endl;
fout<<9624269<<endl;
fout<<9626269<<endl;
fout<<9632369<<endl;
fout<<9634369<<endl;
fout<<9645469<<endl;
fout<<9650569<<endl;
fout<<9657569<<endl;
fout<<9670769<<endl;
fout<<9686869<<endl;
fout<<9700079<<endl;
fout<<9709079<<endl;
fout<<9711179<<endl;
fout<<9714179<<endl;
fout<<9724279<<endl;
fout<<9727279<<endl;
fout<<9732379<<endl;
fout<<9733379<<endl;
fout<<9743479<<endl;
fout<<9749479<<endl;
fout<<9752579<<endl;
fout<<9754579<<endl;
fout<<9758579<<endl;
fout<<9762679<<endl;
fout<<9770779<<endl;
fout<<9776779<<endl;
fout<<9779779<<endl;
fout<<9781879<<endl;
fout<<9782879<<endl;
fout<<9787879<<endl;
fout<<9788879<<endl;
fout<<9795979<<endl;
fout<<9801089<<endl;
fout<<9807089<<endl;
fout<<9809089<<endl;
fout<<9817189<<endl;
fout<<9818189<<endl;
fout<<9820289<<endl;
fout<<9822289<<endl;
fout<<9836389<<endl;
fout<<9837389<<endl;
fout<<9845489<<endl;
fout<<9852589<<endl;
fout<<9871789<<endl;
fout<<9888889<<endl;
fout<<9889889<<endl;
fout<<9896989<<endl;
fout<<9902099<<endl;
fout<<9907099<<endl;
fout<<9908099<<endl;
fout<<9916199<<endl;
fout<<9918199<<endl;
fout<<9919199<<endl;
fout<<9921299<<endl;
fout<<9923299<<endl;
fout<<9926299<<endl;
fout<<9927299<<endl;
fout<<9931399<<endl;
fout<<9932399<<endl;
fout<<9935399<<endl;
fout<<9938399<<endl;
fout<<9957599<<endl;
fout<<9965699<<endl;
fout<<9978799<<endl;
fout<<9980899<<endl;
fout<<9981899<<endl;
fout<<9989899<<endl;
return 0;
}
for(i=a;i<=b;i++)
{
s=0;
if((i%2!=0)||(i==2))
{
if((i%11==0)&&(i!=11))
{
s++;
}
if((i%11!=0)||(i==11))
{
if(f(i))
{
if((i%3==0)&&(i!=3))
{
s++;
}
if((i%5==0)&&(i!=5))
{
s++;
}
if((i%7==0)&&(i!=7))
{
s++;
}
if((i%11==0)&&(i!=11))
{
s++;
}
if((i%13==0)&&(i!=13))
{
s++;
}
if((i%17==0)&&(i!=17))
{
s++;
}
if((i%19==0)&&(i!=19))
{
s++;
}
if((i%23==0)&&(i!=23))
{
s++;
}
if((i%29==0)&&(i!=29))
{
s++;
}
if((i%31==0)&&(i!=31))
{
s++;
}
if((i%37==0)&&(i!=37))
{
s++;
}
if((i%41==0)&&(i!=41))
{
s++;
}
x=pow(i,0.5);
if(s==0)
{
for(p=19;p<x+1;p+=2)
{
if(i%p==0)
{
s++;
break;
}
}
if(s==0)
{
fout<<i<<endl;
}
}
}
}
}
}
return 0;
}