题目链接:http://cstest.scu.edu.cn/soj/problem.action?id=4312
分段过:
#include<stdio.h> #include<math.h> #include<string.h> int ans[10011]={0,1229,2262,3245,4203,5133,6057,6936,7837,8714,9592,10453,11301,12159,13010,13849,14684,15497,16343,17170,17984,18807,19618,20437,21221,22044,22837,23643,24433,25224,25997,26800,27608,28404,29182,29977,30757,31522,32300,33068,33860,34614,35391,36162,36941,37707,38458,39223,40005,40767,41538,42291,43061,43825,44572,45322,46072,46820,47589,48351,49098,49861,50612,51341,52074,52831,53565,54310,55063,55815,56544,57306,58029,58789,59531,60238,60978,61733,62468,63206,63951,64683,65416,66161,66890,67617,68342,69095,69824,70555,71275,72026,72734,73474,74188,74907,75618,76350,77067,77778,78498,79251,79971,80702,81403,82134,82832,83548,84270,84976,85714,86450,87167,87884,88602,89302,90030,90764,91490,92225,92938,93614,94358,95051,95745,96469,97182,97901,98610,99332,100021,100730,101433,102147,102852,103545,104258,104967,105690,106385,107126,107805,108487,109205,109928,110630,111331,112047,112753,113458,114155,114886,115588,116279,116965,117663,118376,119057,119758,120451,121127,121846,122541,123250,123942,124635,125335,126051,126753,127428,128141,128837,129522,130213,130902,131608,132292,132972,133672,134359,135072,135777,136448,137166,137841,138542,139249,139952,140641,141338,142029,142718,143415,144125,144810,145502,146186,146859,147529,148219,148933,149638,150329,151021,151711,152382,153078,153772,154445,155131,155806,156505,157187,157885,158558,159250,159963,160629,161319,161998,162662,163363,164023,164719,165398,166081,166769,167470,168164,168826,169511,170201,170864,171535,172207,172874,173563,174254,174916,175621,176303,176962,177654,178326,178983,179684,180371,181040,181711,182398,183072,183748,184423,185121,185792,186463,187134,187812,188511,189204,189880,190533,191214,191886,192567,193256,193951,194613,195278,195959,196645,197324,198019,198665,199321,199993,200664,201349,202015,202679,203363,204052,204748,205414,206118,206789,207443,208116,208769,209448,210109,210790,211453,212124,212804,213454,214105,214799,215459,216129,216816,217487,218145,218808,219465,220136,220793,221457,222152,222838,223492,224168,224845,225511,226177,226836,227512,228180,228843,229535,230209,230896,231569,232241,232928,233577,234239,234916,235582,236252,236901,237573,238233,238910,239555,240230,240853,241542,242208,242877,243539,244216,244882,245554,246239,246909,247555,248209,248846,249482,250150,250801,251464,252094,252757,253412,254080,254751,255391,256057,256727,257418,258088,258774,259426,260064,260714,261377,262078,262716,263398,264052,264723,265410,266068,266718,267384,268016,268671,269331,269987,270643,271325,271999,272645,273322,273972,274619,275269,275930,276611,277263,277920,278596,279243,279921,280564,281202,281870,282505,283146,283806,284464,285132,285809,286490,287133,287786,288457,289110,289774,290437,291065,291717,292350,293010,293672,294343,294994,295667,296314,296984,297628,298291,298919,299583,300244,300887,301543,302175,302824,303486,304152,304793,305449,306084,306725,307377,308039,308700,309335,309976,310656,311338,311995,312666,313321,313981,314628,315310,315948,316601,317239,317885,318516,319164,319824,320497,321146,321786,322441,323103,323760,324404,325055,325706,326323,326987,327654,328321,328964,329616,330269,330912,331575,332220,332861,333516,334144,334801,335439,336096,336751,337382,338060,338694,339339,340009,340644,341314,341993,342643,343277,343931,344585,345235,345876,346558,347219,347872,348513,349152,349791,350449,351087,351715,352383,353022,353670,354325,354971,355603,356244,356900,357559,358198,358842,359488,360118,360760,361407,362066,362716,363365,364012,364685,365316,365964,366617,367246,367900,368554,369191,369834,370483,371131,371773,372415,373068,373722,374363,374992,375632,376289,376939,377574,378233,378874,379497,380148,380800,381438,382062,382695,383361,383979,384614,385268,385904,386545,387202,387835,388474,389111,389754,390378,391019,391654,392293,392927,393606,394241,394908,395540,396173,396826,397462,398080,398716,399353,399993,400647,401279,401907,402547,403204,403831,404466,405107,405784,406429,407077,407744,408393,409039,409672,410311,410945,411580,412224,412849,413510,414148,414812,415413,416040,416706,417321,417974,418603,419247,419898,420539,421175,421812,422449,423094,423752,424380,424998,425648,426292,426895,427547,428180,428816,429466,430114,430749,431413,432073,432719,433353,434002,434635,435265,435902,436528,437137,437766,438410,439040,439683,440318,440929,441562,442221,442853,443481,444118,444757,445399,446039,446685,447314,447956,448595,449230,449868,450527,451160,451800,452462,453077,453697,454337,454950,455598,456228,456847,457497,458152,458786,459432,460066,460708,461369,461987,462619,463239,463872,464504,465158,465791,466422,467055,467718,468378,469001,469652,470284,470920,471561,472176,472828,473470,474102,474749,475381,476012,476648,477277,477907,478560,479208,479864,480492,481086,481747,482387,483015,483679,484286,484897,485514,486167,486807,487436,488051,488681,489319,489952,490581,491216,491842,492494,493109,493756,494398,495035,495667,496294,496924,497560,498176,498797,499439,500082,500717,501343,501962,502582,503224,503856,504491,505147,505762,506372,507019,507650,508261,508887,509513,510126,510764,511417,512062,512677,513284,513922,514565,515222,515838,516487,517098,517740,518373,518998,519628,520267,520910,521522,522168,522797,523404,524026,524652,525265,525911,526522,527154,527792,528423,529046,529688,530334,530964,531592,532239,532880,533507,534136,534752,535385,536013,536653,537256,537890,538528,539163,539777,540414,541023,541654,542259,542899,543549,544176,544799,545417,546024,546643,547276,547927,548529,549150,549798,550429,551053,551701,552319,552957,553587,554210,554848,555479,556097,556716,557344,557976,558597,559228,559875,560491,561109,561766,562392,563000,563623,564258,564877,565495,566136,566746,567365,567967,568606,569218,569852,570491,571119,571759,572390,573029,573653,574275,574918,575537,576191,576815,577439,578082,578707,579329,579965,580566,581216,581845,582436,583086,583715,584337,584984,585613,586237,586850,587486,588139,588739,589397,590006,590626,591237,591879,592485,593113,593719,594333,594973,595588,596222,596830,597475,598114,598741,599356,599970,600583,601203,601855,602489,603072,603688,604302,604919,605556,606160,606791,607402,608058,608672,609299,609906,610515,611160,611788,612395,613025,613664,614291,614917,615525,616162,616807,617435,618057,618692,619303,619930,620542,621178,621799,622416,623036,623664,624298,624926,625553,626159,626788,627400,628010,628643,629249,629858,630495,631091,631722,632342,632967,633578,634217,634828,635441,636073,636698,637333,637939,638573,639231,639851,640461,641085,641712,642321,642962,643576,644218,644835,645451,646054,646676,647275,647920,648548,649176,649793,650392,651005,651624,652265,652891,653519,654142,654752,655355,655972,656592,657203,657821,658445,659055,659669,660286,660917,661520,662138,662761,663368,663965,664579,665193,665821,666451,667082,667709,668334,668949,669574,670202,670820,671437,672051,672677,673291,673927,674545,675153,675772,676367,676970,677586,678188,678837,679461,680063,680693,681340,681956,682560,683178,683789,684412,685033,685661,686262,686883,687513,688114,688742,689382,689992,690633,691251,691874,692486,693107,693746,694359,694986,695609,696239,696848,697445,698065,698703,699315,699947,700560,701176,701795,702397,703002,703643,704251,704895,705502,706118,706764,707400,708007,708644,709277,709883,710491,711108,711720,712310,712934,713526,714154,714774,715387,715991,716629,717257,717874,718500,719093,719710,720341,720958,721566,722204,722821,723457,724056,724683,725286,725901,726517,727123,727719,728341,728960,729577,730217,730839,731466,732074,732707,733328,733954,734522,735140,735767,736376,737013,737645,738257,738874,739487,740096,740698,741317,741941,742550,743163,743755,744379,745001,745602,746223,746860,747457,748066,748686,749291,749900,750504,751131,751744,752364,752980,753575,754189,754833,755443,756072,756668,757289,757893,758496,759125,759759,760391,761001,761617,762237,762847,763455,764097,764744,765371,765944,766554,767188,767797,768392,769012,769640,770243,770862,771460,772079,772706,773314,773917,774513,775164,775774,776400,777009,777625,778224,778819,779439,780065,780687,781291,781906,782514,783135,783779,784362,784991,785630,786238,786831,787458,788060,788657,789297,789888,790496,791111,791738,792343,792964,793569,794149,794772,795398,796001,796622,797262,797853,798453,799060,799678,800285,800895,801521,802146,802754,803358,803973,804582,805194,805804,806435,807054,807690,808286,808880,809487,810119,810777,811378,811979,812602,813217,813846,814457,815051,815674,816288,816883,817513,818122,818703,819303,819929,820550,821134,821751,822358,822963,823571,824190,824802,825432,826046,826656,827272,827884,828476,829081,829704,830312,830941,831525,832175,832779,833413,834026,834640,835262,835882,836482,837099,837689,838303,838933,839551,840169,840767,841395,841991,842588,843193,843785,844402,844997,845601,846205,846817,847420,848020,848612,849252,849873,850489,851085,851688,852291,852885,853474,854095,854689,855281,855902,856487,857116,857732,858338,858946,859536,860162,860779,861402,862009,862612,863239,863833,864446,865039,865643,866274,866879,867482,868100,868728,869308,869925,870532,871142,871770,872383,872984,873606,874194,874795,875394,876023,876616,877214,877808,878418,879022,879640,880238,880847,881449,882068,882652,883260,883874,884485,885117,885698,886337,886955,887553,888161,888763,889395,890025,890638,891247,891833,892450,893071,893662,894257,894877,895483,896097,896688,897332,897938,898541,899158,899750,900347,900996,901593,902209,902821,903439,904057,904678,905296,905892,906488,907101,907693,908283,908879,909464,910077,910686,911283,911894,912501,913098,913694,914298,914920,915540,916147,916764,917384,917995,918611,919203,919807,920411,921015,921604,922194,922801,923416,923998,924630,925237,925845,926456,927080,927705,928293,928910,929518,930113,930730,931331,931983,932586,933194,933822,934441,935033,935643,936236,936837,937446,938047,938648,939273,939863,940456,941059,941658,942273,942877,943485,944093,944701,945325,945932,946551,947142,947736,948328,948934,949506,950112,950738,951349,951964,952566,953163,953792,954392,954999,955599,956214,956828,957450,958058,958652,959267,959865,960471,961083,961694,962294,962902,963495,964085,964695,965281,965879,966482,967091,967720,968318,968897,969493,970092,970704,971313,971908,972525,973131,973739,974352,974950,975544,976154,976761,977351,977951,978555,979170,979765,980364,980997,981595,982185,982776,983376,983980,984572,985194,985807,986418,987034,987648,988257,988852,989450,990074,990664,991259,991880,992489,993068,993660,994261,994839,995433,996042,996637,997233,997817,998434,999037,999656,1000258,1000862,1001484,1002100,1002714,1003321,1003926,1004547,1005155,1005751,1006372,1006967,1007577,1008180,1008787,1009392,1009985,1010590,1011218,1011806,1012415,1013012,1013611,1014231,1014816,1015435,1016026,1016619,1017220,1017827,1018424,1019012,1019615,1020208,1020829,1021433,1022057,1022677,1023297,1023904,1024512,1025092,1025699,1026288,1026909,1027516,1028089,1028699,1029311,1029914,1030523,1031130,1031709,1032317,1032924,1033519,1034115,1034690,1035314,1035938,1036530,1037119,1037707,1038320,1038918,1039525,1040144,1040719,1041317,1041899,1042507,1043113,1043730,1044353,1044937,1045562,1046152,1046761,1047388,1047969,1048571,1049172,1049791,1050374,1050952,1051534,1052141,1052740,1053330,1053939,1054535,1055139,1055738,1056339,1056969,1057582,1058173,1058744,1059358,1059972,1060582,1061198,1061808,1062388,1062979,1063577,1064162,1064748,1065360,1065942,1066566,1067185,1067799,1068409,1068983,1069590,1070199,1070819,1071402,1072009,1072620,1073198,1073799,1074401,1075016,1075629,1076221,1076836,1077428,1078041,1078637,1079266,1079854,1080480,1081061,1081670,1082255,1082850,1083450,1084048,1084637,1085243,1085855,1086459,1087052,1087648,1088266,1088914,1089495,1090127,1090705,1091314,1091940,1092535,1093149,1093746,1094330,1094932,1095542,1096152,1096737,1097361,1097945,1098551,1099141,1099733,1100328,1100922,1101499,1102092,1102669,1103258,1103857,1104451,1105068,1105682,1106267,1106870,1107451,1108057,1108660,1109288,1109887,1110512,1111141,1111739,1112329,1112926,1113503,1114115,1114717,1115324,1115947,1116556,1117142,1117750,1118354,1118940,1119539,1120173,1120775,1121389,1122007,1122587,1123184,1123779,1124405,1124994,1125605,1126211,1126817,1127407,1127989,1128579,1129192,1129814,1130389,1130974,1131556,1132150,1132758,1133364,1133970,1134550,1135157,1135751,1136320,1136919,1137505,1138124,1138742,1139345,1139957,1140534,1141118,1141715,1142298,1142893,1143516,1144117,1144698,1145305,1145895,1146489,1147091,1147705,1148317,1148944,1149560,1150167,1150767,1151367,1151947,1152546,1153132,1153733,1154307,1154924,1155495,1156089,1156650,1157275,1157887,1158471,1159067,1159667,1160273,1160856,1161434,1162057,1162612,1163205,1163793,1164412,1165006,1165654,1166251,1166847,1167470,1168070,1168668,1169268,1169880,1170484,1171102,1171684,1172264,1172836,1173435,1174027,1174619,1175214,1175826,1176445,1177006,1177621,1178219,1178809,1179400,1179977,1180567,1181158,1181751,1182343,1182933,1183531,1184128,1184738,1185329,1185924,1186549,1187148,1187743,1188339,1188955,1189558,1190171,1190777,1191376,1191967,1192525,1193123,1193721,1194319,1194921,1195540,1196134,1196728,1197329,1197936,1198529,1199102,1199699,1200287,1200894,1201503,1202080,1202693,1203309,1203893,1204472,1205065,1205634,1206236,1206850,1207468,1208078,1208659,1209249,1209837,1210457,1211050,1211632,1212237,1212813,1213419,1214028,1214621,1215187,1215801,1216405,1216988,1217556,1218166,1218756,1219368,1219966,1220569,1221154,1221735,1222345,1222953,1223515,1224118,1224717,1225286,1225900,1226514,1227094,1227691,1228275,1228861,1229483,1230082,1230696,1231283,1231859,1232483,1233072,1233666,1234301,1234873,1235492,1236097,1236688,1237295,1237895,1238508,1239073,1239676,1240253,1240833,1241437,1242034,1242613,1243207,1243787,1244366,1244964,1245525,1246109,1246718,1247337,1247937,1248536,1249122,1249710,1250292,1250895,1251485,1252077,1252693,1253302,1253888,1254464,1255065,1255683,1256274,1256882,1257467,1258070,1258685,1259286,1259872,1260474,1261045,1261660,1262264,1262844,1263445,1264052,1264617,1265213,1265833,1266429,1267034,1267631,1268237,1268815,1269409,1270011,1270607,1271201,1271806,1272406,1273004,1273599,1274197,1274794,1275398,1275985,1276577,1277186,1277763,1278352,1278919,1279531,1280118,1280734,1281351,1281947,1282513,1283100,1283665,1284251,1284869,1285456,1286053,1286640,1287232,1287829,1288409,1289016,1289623,1290185,1290766,1291373,1291972,1292587,1293178,1293778,1294356,1294934,1295517,1296116,1296682,1297270,1297886,1298483,1299069,1299639,1300243,1300848,1301458,1302046,1302620,1303229,1303806,1304412,1305013,1305615,1306226,1306778,1307371,1308002,1308577,1309152,1309763,1310348,1310967,1311589,1312179,1312790,1313390,1313988,1314571,1315161,1315752,1316352,1316945,1317529,1318125,1318709,1319280,1319864,1320459,1321066,1321647,1322260,1322865,1323457,1324046,1324618,1325216,1325809,1326401,1326975,1327580,1328151,1328748,1329371,1329943,1330560,1331169,1331758,1332351,1332935,1333554,1334129,1334708,1335309,1335881,1336480,1337077,1337683,1338266,1338866,1339419,1340015,1340624,1341185,1341795,1342379,1342962,1343540,1344132,1344717,1345314,1345925,1346543,1347158,1347749,1348322,1348919,1349514,1350096,1350691,1351278,1351865,1352460,1353070,1353661,1354242,1354834,1355420,1356011,1356600,1357239,1357835,1358438,1359041,1359631,1360182,1360764,1361348,1361943,1362538,1363134,1363709,1364315,1364909,1365512,1366120,1366694,1367296,1367873,1368447,1369049,1369636,1370245,1370835,1371433,1372041,1372625,1373216,1373816,1374421,1374995,1375599,1376205,1376797,1377385,1377960,1378546,1379151,1379750,1380343,1380938,1381525,1382117,1382735,1383291,1383894,1384505,1385102,1385715,1386325,1386915,1387491,1388075,1388682,1389262,1389844,1390434,1391048,1391664,1392273,1392855,1393420,1393992,1394566,1395148,1395725,1396315,1396911,1397497,1398095,1398667,1399266,1399858,1400446,1401008,1401598,1402170,1402761,1403339,1403922,1404515,1405112,1405705,1406283,1406875,1407470,1408081,1408680,1409256,1409822,1410405,1410993,1411586,1412164,1412758,1413351,1413943,1414521,1415107,1415679,1416273,1416874,1417460,1418055,1418640,1419224,1419821,1420422,1421034,1421620,1422223,1422821,1423407,1424017,1424607,1425190,1425780,1426395,1426966,1427535,1428117,1428717,1429327,1429911,1430531,1431127,1431710,1432293,1432899,1433481,1434078,1434651,1435249,1435836,1436398,1436988,1437566,1438149,1438742,1439367,1439956,1440549,1441138,1441739,1442335,1442918,1443531,1444116,1444690,1445280,1445870,1446460,1447040,1447622,1448221,1448844,1449444,1450040,1450624,1451219,1451812,1452387,1452997,1453566,1454145,1454734,1455321,1455890,1456497,1457067,1457683,1458308,1458877,1459440,1460019,1460592,1461194,1461772,1462368,1462951,1463545,1464148,1464759,1465350,1465935,1466549,1467144,1467727,1468300,1468883,1469512,1470103,1470692,1471243,1471822,1472403,1472987,1473560,1474161,1474757,1475358,1475967,1476558,1477141,1477731,1478306,1478879,1479481,1480073,1480683,1481258,1481842,1482438,1482993,1483609,1484183,1484779,1485379,1485957,1486532,1487144,1487742,1488337,1488916,1489509,1490082,1490648,1491242,1491819,1492408,1493000,1493591,1494191,1494770,1495350,1495942,1496528,1497122,1497686,1498253,1498839,1499433,1500029,1500636,1501220,1501835,1502426,1503012,1503600,1504190,1504752,1505343,1505930,1506521,1507123,1507732,1508301,1508891,1509486,1510064,1510676,1511253,1511853,1512442,1512992,1513583,1514175,1514732,1515329,1515936,1516548,1517148,1517721,1518303,1518898,1519477,1520085,1520688,1521282,1521859,1522462,1523035,1523638,1524255,1524831,1525431,1526009,1526598,1527193,1527768,1528370,1528938,1529538,1530131,1530730,1531325,1531919,1532494,1533075,1533657,1534211,1534795,1535398,1535992,1536569,1537175,1537745,1538342,1538950,1539541,1540113,1540693,1541301,1541869,1542459,1543016,1543617,1544221,1544794,1545372,1545965,1546561,1547172,1547786,1548366,1548965,1549545,1550162,1550716,1551302,1551882,1552483,1553100,1553673,1554245,1554834,1555419,1555987,1556560,1557132,1557747,1558329,1558929,1559505,1560093,1560677,1561226,1561826,1562406,1562976,1563578,1564178,1564794,1565356,1565927,1566540,1567138,1567707,1568270,1568846,1569452,1570043,1570631,1571235,1571812,1572419,1573038,1573610,1574185,1574750,1575299,1575899,1576487,1577080,1577649,1578222,1578797,1579367,1579939,1580509,1581095,1581682,1582296,1582861,1583439,1584045,1584636,1585224,1585812,1586388,1586955,1587524,1588130,1588716,1589324,1589905,1590480,1591035,1591622,1592220,1592822,1593439,1594034,1594596,1595178,1595743,1596314,1596926,1597520,1598118,1598697,1599263,1599875,1600475,1601049,1601616,1602199,1602783,1603401,1603985,1604559,1605122,1605689,1606304,1606876,1607476,1608083,1608649,1609243,1609825,1610431,1611023,1611589,1612180,1612775,1613372,1613982,1614559,1615159,1615749,1616318,1616904,1617473,1618089,1618668,1619229,1619830,1620425,1621027,1621590,1622151,1622741,1623346,1623952,1624527,1625107,1625682,1626263,1626866,1627444,1628044,1628619,1629189,1629793,1630380,1630938,1631538,1632150,1632734,1633312,1633899,1634480,1635069,1635635,1636203,1636790,1637397,1637980,1638572,1639094,1639682,1640272,1640876,1641453,1642052,1642628,1643199,1643809,1644389,1644964,1645542,1646129,1646731,1647311,1647911,1648520,1649135,1649715,1650274,1650840,1651430,1652019,1652609,1653209,1653807,1654418,1654979,1655564,1656158,1656761,1657361,1657930,1658491,1659102,1659690,1660251,1660834,1661427,1662015,1662600,1663186,1663790,1664356,1664939,1665517,1666119,1666718,1667266,1667848,1668413,1668973,1669588,1670141,1670740,1671330,1671908,1672510,1673058,1673662,1674241,1674837,1675421,1676013,1676608,1677200,1677773,1678375,1678941,1679547,1680120,1680705,1681310,1681887,1682457,1683065,1683658,1684230,1684823,1685382,1685964,1686551,1687139,1687748,1688345,1688960,1689521,1690098,1690680,1691279,1691877,1692467,1693029,1693634,1694198,1694762,1695338,1695927,1696518,1697102,1697664,1698248,1698825,1699387,1699987,1700558,1701140,1701715,1702299,1702893,1703469,1704067,1704631,1705210,1705789,1706405,1706968,1707563,1708158,1708748,1709342,1709906,1710498,1711069,1711641,1712204,1712802,1713402,1713986,1714571,1715158,1715740,1716331,1716912,1717526,1718134,1718730,1719285,1719868,1720459,1721034,1721621,1722194,1722768,1723329,1723913,1724504,1725074,1725663,1726314,1726899,1727447,1728051,1728618,1729194,1729764,1730363,1730946,1731501,1732083,1732641,1733215,1733802,1734415,1734983,1735590,1736184,1736784,1737356,1737943,1738531,1739111,1739712,1740294,1740864,1741430,1742016,1742611,1743224,1743821,1744400,1744934,1745511,1746098,1746699,1747297,1747851,1748427,1749012,1749597,1750204,1750773,1751343,1751932,1752478,1753058,1753669,1754233,1754848,1755429,1756025,1756599,1757204,1757792,1758360,1758965,1759560,1760155,1760721,1761321,1761886,1762458,1763026,1763608,1764167,1764767,1765347,1765897,1766506,1767095,1767692,1768265,1768823,1769403,1769982,1770613,1771209,1771792,1772358,1772940,1773526,1774123,1774692,1775265,1775867,1776430,1777008,1777588,1778196,1778772,1779364,1779942,1780525,1781105,1781707,1782260,1782817,1783408,1783992,1784590,1785173,1785747,1786303,1786881,1787467,1788066,1788623,1789173,1789787,1790353,1790930,1791533,1792112,1792693,1793272,1793863,1794438,1795037,1795628,1796192,1796762,1797347,1797923,1798500,1799091,1799676,1800247,1800835,1801417,1802005,1802594,1803143,1803718,1804312,1804895,1805472,1806053,1806636,1807223,1807791,1808374,1808956,1809509,1810103,1810665,1811273,1811851,1812429,1813003,1813550,1814112,1814712,1815310,1815880,1816502,1817102,1817688,1818270,1818838,1819428,1820026,1820638,1821206,1821812,1822374,1822944,1823519,1824075,1824634,1825221,1825792,1826362,1826944,1827530,1828126,1828703,1829270,1829855,1830451,1831050,1831616,1832194,1832763,1833349,1833920,1834530,1835087,1835685,1836262,1836829,1837417,1838008,1838590,1839175,1839749,1840359,1840932,1841550,1842140,1842716,1843275,1843846,1844394,1844980,1845548,1846115,1846696,1847268,1847852,1848437,1849029,1849645,1850238,1850814,1851411,1852006,1852565,1853152,1853733,1854335,1854941,1855521,1856096,1856688,1857278,1857860,1858453,1859047,1859627,1860205,1860788,1861373,1861956,1862537,1863156,1863719,1864285,1864870,1865449,1866041,1866645,1867219,1867773,1868354,1868947,1869536,1870119,1870710,1871291,1871862,1872442,1873026,1873598,1874179,1874758,1875367,1875935,1876517,1877119,1877717,1878295,1878878,1879451,1880006,1880613,1881199,1881796,1882353,1882913,1883472,1884021,1884605,1885184,1885771,1886348,1886923,1887496,1888096,1888662,1889278,1889855,1890406,1891008,1891591,1892174,1892786,1893360,1893938,1894512,1895107,1895702,1896312,1896913,1897474,1898059,1898632,1899202,1899787,1900368,1900965,1901521,1902099,1902673,1903244,1903810,1904396,1904975,1905565,1906163,1906733,1907306,1907906,1908490,1909085,1909667,1910248,1910847,1911417,1911984,1912559,1913136,1913714,1914280,1914850,1915397,1915979,1916571,1917160,1917727,1918318,1918858,1919420,1919986,1920584,1921135,1921714,1922280,1922866,1923466,1924054,1924643,1925209,1925774,1926338,1926912,1927488,1928071,1928645,1929235,1929823,1930397,1930957,1931525,1932129,1932743,1933290,1933895,1934479,1935044,1935647,1936209,1936801,1937366,1937936,1938523,1939089,1939671,1940259,1940832,1941402,1941982,1942543,1943121,1943681,1944242,1944833,1945398,1945980,1946550,1947106,1947684,1948280,1948884,1949476,1950058,1950639,1951202,1951794,1952363,1952948,1953525,1954099,1954673,1955288,1955851,1956440,1957017,1957572,1958145,1958713,1959309,1959859,1960448,1961040,1961633,1962184,1962785,1963362,1963944,1964528,1965111,1965714,1966292,1966888,1967447,1968015,1968603,1969175,1969746,1970325,1970912,1971478,1972067,1972655,1973219,1973815,1974382,1974951,1975514,1976090,1976668,1977252,1977816,1978419,1978986,1979564,1980169,1980768,1981333,1981904,1982509,1983099,1983658,1984223,1984804,1985372,1985932,1986510,1987054,1987664,1988254,1988830,1989386,1989986,1990553,1991162,1991740,1992320,1992883,1993472,1994051,1994627,1995216,1995769,1996369,1996958,1997523,1998110,1998696,1999236,1999823,2000423,2001000,2001600,2002169,2002750,2003327,2003897,2004476,2005080,2005638,2006212,2006790,2007380,2007988,2008561,2009128,2009714,2010309,2010871,2011423,2012003,2012595,2013166,2013757,2014337,2014899,2015483,2016062,2016637,2017231,2017784,2018368,2018934,2019515,2020103,2020670,2021250,2021796,2022387,2022944,2023535,2024106,2024670,2025274,2025864,2026425,2026989,2027596,2028179,2028764,2029365,2029942,2030516,2031099,2031668,2032251,2032817,2033393,2033945,2034522,2035081,2035657,2036240,2036825,2037385,2037977,2038550,2039137,2039711,2040293,2040870,2041474,2042036,2042629,2043192,2043764,2044332,2044918,2045486,2046088,2046680,2047246,2047823,2048414,2048989,2049566,2050147,2050746,2051316,2051891,2052471,2053050,2053639,2054236,2054802,2055395,2055962,2056545,2057117,2057701,2058265,2058860,2059433,2060021,2060577,2061139,2061711,2062276,2062840,2063430,2064038,2064609,2065186,2065734,2066324,2066901,2067460,2068026,2068600,2069193,2069771,2070353,2070915,2071500,2072084,2072661,2073237,2073812,2074382,2074966,2075563,2076146,2076732,2077301,2077862,2078438,2079054,2079627,2080200,2080771,2081362,2081945,2082512,2083110,2083678,2084236,2084824,2085401,2085956,2086529,2087067,2087643,2088220,2088799,2089379,2089960,2090520,2091087,2091665,2092244,2092792,2093369,2093943,2094534,2095092,2095680,2096259,2096814,2097385,2097961,2098523,2099077,2099651,2100203,2100791,2101373,2101955,2102516,2103095,2103648,2104219,2104808,2105388,2105956,2106544,2107107,2107662,2108235,2108820,2109362,2109944,2110500,2111067,2111660,2112215,2112812,2113382,2113967,2114517,2115089,2115681,2116270,2116848,2117434,2118002,2118584,2119170,2119767,2120337,2120897,2121490,2122039,2122631,2123205,2123788,2124373,2124939,2125503,2126088,2126637,2127185,2127751,2128312,2128911,2129473,2130041,2130626,2131213,2131771,2132329,2132890,2133477,2134065,2134642,2135232,2135800,2136379,2136934,2137507,2138061,2138665,2139271,2139863,2140433,2141013,2141592,2142167,2142780,2143325,2143884,2144494,2145066,2145645,2146197,2146775,2147349,2147915,2148489,2149052,2149635,2150187,2150764,2151325,2151914,2152470,2153082,2153629,2154209,2154774,2155359,2155952,2156542,2157089,2157653,2158234,2158823,2159399,2159987,2160550,2161147,2161717,2162304,2162842,2163436,2163998,2164584,2165170,2165747,2166327,2166906,2167448,2168023,2168606,2169199,2169775,2170371,2170965,2171526,2172088,2172667,2173249,2173818,2174364,2174955,2175518,2176102,2176666,2177249,2177834,2178423,2179002,2179572,2180133,2180692,2181266,2181845,2182429,2182979,2183567,2184161,2184737,2185324,2185893,2186456,2187043,2187591,2188150,2188744,2189328,2189920,2190476,2191069,2191649,2192234,2192806,2193368,2193941,2194510,2195099,2195671,2196253,2196798,2197369,2197931,2198505,2199068,2199643,2200216,2200795,2201356,2201932,2202503,2203090,2203659,2204262,2204839,2205427,2206036,2206586,2207150,2207711,2208273,2208862,2209431,2210026,2210602,2211172,2211752,2212319,2212916,2213459,2214021,2214607,2215143,2215731,2216281,2216876,2217460,2218026,2218609,2219209,2219792,2220355,2220969,2221543,2222108,2222660,2223267,2223859,2224435,2225004,2225586,2226160,2226728,2227279,2227859,2228406,2228988,2229569,2230137,2230716,2231305,2231891,2232470,2233036,2233605,2234182,2234742,2235329,2235899,2236464,2237008,2237600,2238205,2238778,2239354,2239918,2240509,2241044,2241626,2242216,2242772,2243328,2243906,2244473,2245034,2245605,2246164,2246729,2247300,2247919,2248497,2249076,2249649,2250226,2250791,2251392,2251950,2252474,2253061,2253637,2254214,2254791,2255337,2255897,2256424,2256992,2257571,2258156,2258731,2259311,2259885,2260470,2261058,2261623,2262205,2262792,2263354,2263943,2264514,2265090,2265657,2266239,2266808,2267395,2267997,2268594,2269187,2269774,2270349,2270902,2271476,2272049,2272616,2273190,2273770,2274343,2274889,2275460,2276042,2276573,2277155,2277734,2278302,2278857,2279450,2280017,2280580,2281158,2281732,2282332,2282886,2283460,2284045,2284633,2285215,2285767,2286340,2286891,2287447,2288031,2288606,2289193,2289786,2290350,2290944,2291554,2292090,2292689,2293262,2293834,2294390,2294945,2295507,2296101,2296651,2297259,2297813,2298402,2298985,2299528,2300140,2300705,2301257,2301840,2302411,2302986,2303569,2304136,2304721,2305268,2305841,2306410,2306990,2307562,2308107,2308676,2309248,2309869,2310419,2310990,2311544,2312119,2312676,2313254,2313839,2314404,2314984,2315552,2316107,2316673,2317272,2317825,2318392,2318966,2319540,2320132,2320685,2321251,2321832,2322419,2323011,2323614,2324179,2324729,2325312,2325896,2326464,2327044,2327619,2328187,2328783,2329350,2329953,2330509,2331069,2331652,2332233,2332806,2333367,2333969,2334543,2335120,2335698,2336299,2336882,2337439,2338026,2338587,2339147,2339711,2340283,2340868,2341433,2342005,2342549,2343157,2343726,2344297,2344890,2345444,2346033,2346594,2347155,2347728,2348333,2348912,2349486,2350019,2350582,2351154,2351725,2352277,2352849,2353448,2353998,2354573,2355131,2355694,2356279,2356848,2357409,2357975,2358561,2359142,2359737,2360329,2360879,2361479,2362051,2362622,2363198,2363780,2364344,2364953,2365524,2366071,2366645,2367229,2367814,2368396,2368975,2369563,2370131,2370696,2371254,2371842,2372446,2373016,2373591,2374159,2374708,2375264,2375840,2376403,2376968,2377544,2378103,2378686,2379261,2379816,2380382,2380957,2381536,2382121,2382674,2383265,2383832,2384412,2384990,2385574,2386159,2386695,2387276,2387828,2388409,2388978,2389575,2390140,2390737,2391274,2391844,2392430,2393046,2393630,2394217,2394799,2395378,2395935,2396534,2397085,2397646,2398217,2398788,2399360,2399948,2400530,2401106,2401660,2402243,2402804,2403381,2403934,2404535,2405101,2405678,2406294,2406837,2407407,2407984,2408562,2409098,2409683,2410263,2410827,2411424,2412024,2412605,2413185,2413749,2414312,2414900,2415481,2416043,2416624,2417162,2417730,2418297,2418853,2419434,2420024,2420576,2421171,2421735,2422305,2422882,2423431,2424005,2424568,2425151,2425725,2426286,2426847,2427415,2427981,2428554,2429131,2429697,2430250,2430806,2431363,2431933,2432516,2433073,2433654,2434237,2434799,2435355,2435923,2436487,2437056,2437615,2438201,2438767,2439371,2439933,2440514,2441097,2441660,2442236,2442801,2443385,2443935,2444510,2445078,2445625,2446201,2446764,2447345,2447902,2448455,2449078,2449650,2450246,2450819,2451398,2451965,2452555,2453120,2453695,2454273,2454846,2455432,2456008,2456577,2457126,2457675,2458258,2458814,2459382,2459962,2460535,2461090,2461671,2462273,2462826,2463397,2463957,2464537,2465109,2465655,2466221,2466775,2467331,2467902,2468472,2469053,2469603,2470159,2470746,2471315,2471879,2472452,2472999,2473603,2474166,2474761,2475356,2475940,2476509,2477089,2477657,2478244,2478828,2479409,2479959,2480532,2481117,2481702,2482267,2482843,2483422,2483994,2484539,2485075,2485630,2486198,2486748,2487325,2487886,2488466,2489032,2489603,2490196,2490756,2491324,2491895,2492481,2493033,2493597,2494146,2494716,2495311,2495888,2496476,2497049,2497622,2498184,2498759,2499337,2499902,2500482,2501047,2501636,2502205,2502744,2503326,2503900,2504462,2505030,2505572,2506152,2506706,2507288,2507850,2508413,2508980,2509563,2510158,2510721,2511291,2511844,2512410,2512986,2513534,2514108,2514653,2515218,2515822,2516394,2516984,2517544,2518095,2518674,2519246,2519823,2520387,2520936,2521500,2522092,2522679,2523217,2523774,2524326,2524898,2525452,2526007,2526565,2527131,2527697,2528281,2528844,2529424,2529994,2530575,2531154,2531716,2532281,2532833,2533422,2533993,2534576,2535144,2535695,2536287,2536861,2537432,2538019,2538613,2539186,2539749,2540300,2540874,2541437,2542018,2542586,2543134,2543679,2544234,2544808,2545385,2545942,2546492,2547054,2547620,2548176,2548765,2549302,2549883,2550462,2551019,2551581,2552157,2552733,2553306,2553886,2554437,2554997,2555585,2556176,2556757,2557321,2557890,2558455,2559020,2559622,2560182,2560752,2561300,2561921,2562470,2563051,2563626,2564209,2564808,2565386,2565960,2566511,2567078,2567637,2568213,2568784,2569372,2569936,2570490,2571051,2571613,2572178,2572732,2573319,2573884,2574460,2575047,2575628,2576200,2576756,2577337,2577903,2578457,2579019,2579598,2580161,2580719,2581267,2581841,2582420,2582988,2583547,2584120,2584684,2585297,2585852,2586413,2586980,2587550,2588136,2588682,2589233,2589811,2590386,2590946,2591523,2592085,2592665,2593245,2593840,2594397,2594937,2595505,2596090,2596660,2597201,2597772,2598322,2598870,2599427,2599991,2600562,2601160,2601721,2602271,2602822,2603385,2603957,2604535,2605082,2605643,2606200,2606783,2607331,2607892,2608474,2609061,2609654,2610226,2610801,2611346,2611927,2612495,2613067,2613640,2614234,2614787,2615359,2615907,2616492,2617046,2617625,2618185,2618758,2619315,2619867,2620431,2621010,2621567,2622160,2622719,2623271,2623845,2624440,2625032,2625562,2626146,2626715,2627281,2627844,2628422,2628980,2629549,2630152,2630713,2631268,2631827,2632416,2632997,2633590,2634133,2634707,2635289,2635866,2636440,2637024,2637589,2638147,2638710,2639254,2639826,2640395,2640939,2641508,2642064,2642612,2643184,2643749,2644301,2644883,2645449,2646011,2646594,2647127,2647709,2648276,2648846,2649437,2649982,2650532,2651094,2651680,2652264,2652825,2653392,2653980,2654525,2655091,2655643,2656201,2656766,2657316,2657901,2658487,2659086,2659671,2660248,2660836,2661384,2661959,2662513,2663057,2663646,2664228,2664793,2665360,2665933,2666482,2667036,2667600,2668171,2668711,2669290,2669841,2670422,2670982,2671551,2672134,2672702,2673285,2673847,2674396,2674968,2675524,2676099,2676674,2677270,2677859,2678429,2678995,2679537,2680105,2680676,2681217,2681807,2682367,2682930,2683486,2684054,2684617,2685221,2685772,2686334,2686906,2687484,2688044,2688625,2689175,2689717,2690305,2690865,2691437,2692024,2692570,2693134,2693723,2694299,2694875,2695450,2696032,2696633,2697167,2697725,2698298,2698887,2699411,2699980,2700562,2701160,2701736,2702280,2702865,2703432,2703995,2704582,2705172,2705727,2706301,2706859,2707412,2707983,2708537,2709079,2709644,2710225,2710799,2711379,2711927,2712494,2713065,2713629,2714192,2714755,2715332,2715915,2716479,2717044,2717605,2718160,2718733,2719310,2719868,2720426,2721011,2721622,2722188,2722780,2723325,2723886,2724443,2725025,2725601,2726148,2726718,2727260,2727809,2728383,2728964,2729508,2730073,2730650,2731238,2731816,2732389,2732971,2733522,2734106,2734692,2735255,2735825,2736412,2737015,2737551,2738140,2738737,2739301,2739864,2740413,2740986,2741543,2742095,2742671,2743255,2743838,2744429,2745004,2745571,2746109,2746679,2747245,2747816,2748390,2748979,2749526,2750086,2750642,2751221,2751814,2752380,2752954,2753536,2754083,2754661,2755215,2755788,2756348,2756915,2757489,2758057,2758622,2759186,2759735,2760307,2760896,2761478,2762055,2762623,2763164,2763691,2764262,2764838,2765380,2765939,2766522,2767094,2767671,2768231,2768807,2769407,2769972,2770544,2771127,2771685,2772249,2772829,2773360,2773906,2774487,2775053,2775618,2776209,2776761,2777308,2777902,2778457,2779035,2779600,2780161,2780731,2781281,2781842,2782391,2782949,2783527,2784082,2784649,2785234,2785785,2786355,2786946,2787496,2788076,2788631,2789189,2789758,2790328,2790866,2791418,2791974,2792557,2793112,2793698,2794272,2794837,2795397,2795953,2796538,2797096,2797652,2798227,2798806,2799376,2799927,2800483,2801039,2801601,2802186,2802759,2803324,2803923,2804491,2805030,2805604,2806163,2806713,2807281,2807849,2808415,2808976,2809577,2810148,2810728,2811292,2811854,2812423,2813000,2813574,2814120,2814698,2815264,2815824,2816362,2816931,2817518,2818076,2818625,2819230,2819782,2820355,2820929,2821488,2822067,2822631,2823178,2823741,2824303,2824891,2825449,2826040,2826612,2827153,2827718,2828288,2828852,2829415,2829959,2830547,2831110,2831693,2832257,2832811,2833378,2833954,2834491,2835049,2835587,2836140,2836703,2837271,2837865,2838412,2838998,2839577,2840147,2840711,2841266,2841845,2842419,2842996,2843573,2844116,2844672,2845231,2845793,2846353,2846936,2847517,2848071,2848642,2849207,2849787,2850363,2850915,2851462,2852008,2852583,2853168,2853750,2854302,2854852,2855409,2855990,2856532,2857087,2857650,2858210,2858812,2859376,2859964,2860523,2861087,2861645,2862222,2862777,2863347,2863909,2864471,2865030,2865596,2866174,2866722,2867298,2867852,2868399,2868936,2869502,2870063,2870644,2871207,2871760,2872328,2872906,2873464,2874012,2874572,2875162,2875729,2876271,2876824,2877409,2877974,2878548,2879114,2879678,2880266,2880841,2881445,2881990,2882545,2883111,2883666,2884224,2884786,2885338,2885912,2886473,2887024,2887565,2888144,2888696,2889269,2889851,2890405,2890939,2891491,2892054,2892603,2893182,2893763,2894341,2894892,2895464,2896034,2896598,2897144,2897733,2898296,2898838,2899408,2899962,2900534,2901054,2901625,2902192,2902755,2903331,2903890,2904469,2905026,2905596,2906183,2906735,2907308,2907902,2908448,2908986,2909564,2910146,2910714,2911269,2911835,2912389,2912928,2913488,2914041,2914633,2915186,2915767,2916338,2916921,2917500,2918060,2918623,2919190,2919714,2920266,2920843,2921418,2921978,2922554,2923128,2923696,2924232,2924773,2925369,2925942,2926495,2927057,2927626,2928177,2928732,2929289,2929864,2930405,2930957,2931500,2932069,2932655,2933208,2933789,2934390,2934961,2935525,2936068,2936622,2937202,2937774,2938348,2938896,2939448,2940009,2940578,2941160,2941732,2942291,2942860,2943402,2943982,2944531,2945104,2945665,2946195,2946778,2947349,2947931,2948483,2949031,2949617,2950188,2950744,2951314,2951863,2952422,2952990,2953557,2954118,2954679,2955253,2955834,2956435,2956988,2957556,2958125,2958685,2959234,2959796,2960370,2960934,2961491,2962044,2962603,2963178,2963750,2964317,2964887,2965463,2966022,2966595,2967186,2967729,2968307,2968878,2969437,2970001,2970551,2971108,2971704,2972285,2972862,2973425,2974000,2974561,2975118,2975681,2976247,2976830,2977406,2977974,2978556,2979117,2979690,2980257,2980806,2981364,2981942,2982495,2983052,2983624,2984185,2984734,2985308,2985853,2986417,2987006,2987574,2988138,2988696,2989267,2989826,2990402,2990951,2991494,2992055,2992648,2993227,2993782,2994344,2994935,2995509,2996062,2996630,2997184,2997752,2998299,2998853,2999434,3000019,3000581,3001134,3001669,3002231,3002808,3003350,3003926,3004477,3005037,3005605,3006158,3006727,3007311,3007876,3008470,3009028,3009572,3010145,3010688,3011251,3011792,3012362,3012936,3013503,3014066,3014634,3015188,3015735,3016293,3016877,3017430,3018013,3018583,3019152,3019717,3020294,3020868,3021419,3021977,3022533,3023087,3023650,3024192,3024752,3025324,3025895,3026457,3027026,3027607,3028163,3028721,3029297,3029852,3030429,3031010,3031560,3032121,3032726,3033276,3033839,3034405,3034973,3035514,3036098,3036654,3037219,3037777,3038327,3038879,3039469,3040015,3040593,3041146,3041673,3042263,3042836,3043438,3043998,3044562,3045115,3045694,3046241,3046811,3047372,3047951,3048522,3049095,3049660,3050236,3050782,3051342,3051875,3052448,3053014,3053560,3054123,3054680,3055228,3055794,3056333,3056907,3057494,3058061,3058596,3059151,3059717,3060252,3060819,3061377,3061952,3062504,3063082,3063668,3064243,3064796,3065342,3065902,3066457,3067011,3067579,3068151,3068712,3069261,3069832,3070392,3070976,3071535,3072103,3072664,3073227,3073766,3074342,3074892,3075458,3076030,3076579,3077158,3077720,3078298,3078889,3079471,3080044,3080602,3081156,3081740,3082273,3082828,3083367,3083904,3084478,3085041,3085615,3086200,3086768,3087343,3087885,3088446,3089011,3089615,3090188,3090737,3091310,3091873,3092440,3092990,3093536,3094098,3094652,3095210,3095764,3096308,3096885,3097444,3097992,3098558,3099138,3099719,3100278,3100833,3101405,3101981,3102560,3103129,3103713,3104294,3104870,3105434,3105977,3106526,3107098,3107659,3108210,3108760,3109338,3109905,3110470,3111026,3111601,3112156,3112719,3113276,3113843,3114395,3114964,3115519,3116082,3116662,3117219,3117809,3118366,3118920,3119506,3120037,3120597,3121166,3121723,3122284,3122825,3123372,3123963,3124529,3125086,3125647,3126201,3126774,3127334,3127886,3128439,3129015,3129564,3130102,3130647,3131211,3131786,3132356,3132899,3133486,3134056,3134640,3135179,3135760,3136324,3136879,3137460,3137976,3138556,3139115,3139686,3140232,3140786,3141357,3141927,3142481,3143034,3143597,3144161,3144718,3145301,3145840,3146388,3146962,3147521,3148084,3148664,3149237,3149833,3150393,3150939,3151495,3152050,3152613,3153171,3153723,3154312,3154862,3155419,3155978,3156529,3157118,3157698,3158235,3158801,3159374,3159933,3160508,3161054,3161615,3162167,3162757,3163317,3163877,3164431,3165007,3165564,3166128,3166690,3167242,3167788,3168351,3168918,3169499,3170052,3170602,3171169,3171735,3172294,3172859,3173420,3173962,3174561,3175121,3175695,3176231,3176800,3177347,3177919,3178497,3179077,3179639,3180216,3180765,3181277,3181847,3182421,3183017,3183538,3184117,3184691,3185258,3185814,3186390,3186966,3187539,3188107,3188648,3189222,3189799,3190353,3190899,3191429,3191988,3192557,3193111,3193678,3194250,3194807,3195363,3195920,3196457,3197013,3197568,3198119,3198698,3199259,3199806,3200347,3200927,3201481,3202033,3202581,3203135,3203713,3204265,3204806,3205353,3205924,3206514,3207084,3207658,3208233,3208769,3209318,3209879,3210452,3211029,3211593,3212152,3212708,3213263,3213810,3214396,3214948,3215527,3216069,3216610,3217157,3217702,3218287,3218830,3219403,3219986,3220576,3221124,3221717,3222229,3222791,3223359,3223930,3224511,3225091,3225651,3226203,3226755,3227315,3227861,3228447,3228993,3229553,3230113,3230671,3231261,3231825,3232369,3232930,3233493,3234061,3234625,3235185,3235724,3236274,3236832,3237408,3237933,3238487,3239039,3239610,3240154,3240712,3241305,3241841,3242423,3242981,3243517,3244109,3244670,3245251,3245798,3246350,3246903,3247460,3247994,3248574,3249113,3249662,3250225,3250805,3251355,3251897,3252470,3253033,3253586,3254129,3254694,3255275,3255850,3256421,3256977,3257541,3258085,3258640,3259216,3259801,3260354,3260932,3261498,3262079,3262638,3263218,3263763,3264324,3264869,3265419,3265972,3266522,3267070,3267658,3268200,3268756,3269306,3269901,3270452,3271006,3271574,3272135,3272680,3273244,3273777,3274352,3274912,3275449,3275984,3276528,3277099,3277661,3278189,3278762,3279363,3279950,3280506,3281059,3281628,3282200,3282755,3283325,3283887,3284461,3285020,3285585,3286170,3286744,3287312,3287879,3288447,3288984,3289540,3290102,3290654,3291228,3291774,3292331,3292897,3293449,3294014,3294571,3295160,3295711,3296283,3296828,3297377,3297930,3298487,3299022,3299602,3300176,3300758,3301286,3301852,3302412,3302965,3303533,3304104,3304658,3305213,3305786,3306343,3306916,3307483,3308039,3308594,3309145,3309720,3310266,3310811,3311375,3311903,3312475,3313017,3313565,3314146,3314724,3315266,3315820,3316391,3316960,3317530,3318086,3318663,3319206,3319780,3320352,3320921,3321475,3322056,3322619,3323188,3323751,3324323,3324900,3325472,3326045,3326570,3327111,3327681,3328249,3328824,3329378,3329940,3330514,3331053,3331620,3332159,3332731,3333274,3333845,3334403,3334941,3335504,3336038,3336603,3337183,3337753,3338330,3338876,3339450,3340017,3340550,3341110,3341669,3342251,3342830,3343399,3343958,3344537,3345094,3345668,3346239,3346783,3347364,3347929,3348514,3349092,3349661,3350190,3350747,3351319,3351881,3352392,3352947,3353547,3354100,3354671,3355218,3355786,3356321,3356871,3357440,3358012,3358568,3359115,3359666,3360229,3360782,3361328,3361876,3362425,3362980,3363526,3364072,3364651,3365198,3365778,3366340,3366882,3367425,3368005,3368567,3369129,3369697,3370264,3370815,3371366,3371952,3372521,3373077,3373610,3374185,3374759,3375328,3375891,3376459,3377041,3377626,3378192,3378777,3379332,3379916,3380449,3381010,3381587,3382156,3382717,3383274,3383837,3384407,3384976,3385523,3386065,3386609,3387153,3387705,3388277,3388854,3389416,3389981,3390526,3391112,3391683,3392209,3392759,3393301,3393854,3394435,3395009,3395556,3396115,3396666,3397213,3397774,3398362,3398925,3399492,3400038,3400597,3401184,3401739,3402288,3402862,3403402,3403973,3404519,3405076,3405629,3406196,3406760,3407319,3407868,3408442,3409008,3409573,3410128,3410701,3411294,3411855,3412423,3412989,3413551,3414144,3414694,3415237,3415796,3416367,3416919,3417478,3418022,3418577,3419154,3419678,3420244,3420785,3421334,3421907,3422475,3423033,3423596,3424155,3424733,3425282,3425833,3426400,3426960,3427525,3428077,3428616,3429170,3429740,3430286,3430846,3431413,3431978,3432524,3433065,3433631,3434200,3434751,3435294,3435863,3436421,3436965,3437521,3438079,3438653,3439220,3439754,3440314,3440881,3441415,3441971,3442527,3443101,3443654,3444244,3444791,3445338,3445897,3446458,3447013,3447580,3448140,3448707,3449238,3449786,3450336,3450909,3451454,3452016,3452580,3453153,3453713,3454290,3454851,3455415,3455970,3456519,3457059,3457629,3458212,3458759,3459334,3459874,3460421,3460985,3461542,3462109,3462660,3463199,3463765,3464340,3464914,3465468,3466059,3466593,3467135,3467669,3468230,3468807,3469363,3469918,3470512,3471082,3471629,3472181,3472756,3473292,3473862,3474413,3474964,3475508,3476070,3476636,3477164,3477732,3478304,3478873,3479471,3480005,3480550,3481119,3481700,3482272,3482814,3483370,3483945,3484497,3485074,3485635,3486221,3486758,3487310,3487844,3488400,3488980,3489523,3490059,3490639,3491210,3491761,3492339,3492913,3493447,3494036,3494585,3495161,3495738,3496326,3496888,3497440,3497983,3498532,3499115,3499666,3500220,3500796,3501334,3501901,3502467,3503038,3503563,3504107,3504640,3505220,3505757,3506314,3506866,3507432,3508010,3508591,3509145,3509677,3510221,3510786,3511349,3511922,3512469,3513006,3513583,3514106,3514674,3515215,3515795,3516366,3516933,3517468,3518009,3518580,3519131,3519683,3520230,3520773,3521314,3521892,3522470,3523035,3523579,3524143,3524689,3525283,3525821,3526368,3526927,3527476,3528021,3528547,3529106,3529703,3530263,3530820,3531377,3531936,3532483,3533033,3533604,3534167,3534733,3535297,3535858,3536426,3536990,3537541,3538089,3538640,3539195,3539757,3540327,3540904,3541479,3542008,3542571,3543116,3543676,3544245,3544792,3545332,3545904,3546462,3547033,3547550,3548119,3548672,3549260,3549821,3550392,3550955,3551502,3552066,3552635,3553203,3553772,3554342,3554879,3555432,3555991,3556550,3557110,3557660,3558216,3558764,3559312,3559876,3560430,3560964,3561516,3562115,3562678,3563238,3563785,3564332,3564896,3565447,3566009,3566568,3567118,3567677,3568218,3568743,3569332,3569876,3570444,3571007,3571587,3572144,3572680,3573237,3573781,3574366,3574946,3575512,3576080,3576630,3577169,3577717,3578256,3578833,3579400,3579976,3580537,3581107,3581650,3582210,3582790,3583333,3583896,3584453,3585041,3585583,3586171,3586714,3587234,3587791,3588350,3588907,3589486,3590054,3590580,3591134,3591686,3592246,3592811,3593362,3593906,3594477,3595037,3595578,3596149,3596720,3597315,3597877,3598447,3598985,3599551,3600109,3600664,3601205,3601743,3602316,3602880,3603434,3604022,3604603,3605156,3605711,3606262,3606812,3607385,3607943,3608512,3609093,3609669,3610242,3610781,3611332,3611881,3612449,3612991,3613552,3614118,3614677,3615204,3615785,3616348,3616903,3617465,3618046,3618594,3619153,3619733,3620265,3620829,3621373,3621939,3622485,3623046,3623569,3624127,3624702,3625258,3625801,3626365,3626886,3627423,3627984,3628547,3629084,3629653,3630229,3630774,3631332,3631884,3632450,3633007,3633567,3634118,3634647,3635198,3635756,3636308,3636847,3637393,3637951,3638507,3639086,3639641,3640201,3640747,3641287,3641859,3642407,3642986,3643545,3644112,3644670,3645247,3645798,3646328,3646872,3647459,3648001,3648549,3649110,3649648,3650198,3650744,3651314,3651875,3652432,3652983,3653527,3654079,3654646,3655215,3655787,3656324,3656875,3657439,3657971,3658543,3659108,3659664,3660235,3660775,3661330,3661875,3662428,3662974,3663554,3664121,3664680,3665241,3665801,3666357,3666923,3667480,3668016,3668574,3669123,3669694,3670266,3670826,3671379,3671935,3672475,3673037,3673600,3674178,3674716,3675300,3675836,3676368,3676939,3677519,3678068,3678647,3679207,3679783,3680328,3680903,3681483,3682032,3682570,3683125,3683672,3684221,3684788,3685332,3685879,3686442,3687004,3687547,3688098,3688640,3689205,3689762,3690317,3690904,3691478,3692040,3692612,3693173,3693746,3694281,3694837,3695381,3695916,3696484,3697059,3697612,3698173,3698720,3699287,3699833,3700397,3700940,3701488,3702053,3702614,3703190,3703727,3704266,3704812,3705340,3705883,3706428,3707015,3707583,3708128,3708669,3709222,3709774,3710329,3710896,3711452,3711997,3712576,3713122,3713695,3714260,3714815,3715376,3715918,3716503,3717065,3717636,3718206,3718734,3719315,3719856,3720402,3720962,3721506,3722068,3722620,3723171,3723740,3724321,3724883,3725428,3725974,3726553,3727112,3727658,3728205,3728767,3729306,3729862,3730425,3730996,3731521,3732060,3732614,3733203,3733769,3734334,3734872,3735427,3735980,3736536,3737081,3737624,3738187,3738743,3739308,3739865,3740435,3740994,3741559,3742114,3742671,3743239,3743792,3744365,3744902,3745475,3746021,3746589,3747116,3747663,3748203,3748754,3749327,3749883,3750448,3751015,3751585,3752133,3752689,3753254,3753824,3754395,3754954,3755513,3756075,3756626,3757186,3757716,3758249,3758828,3759399,3759955,3760515,3761078,3761644,3762193,3762746,3763307,3763853,3764397,3764964,3765514,3766076,3766621,3767196,3767755,3768289,3768839,3769389,3769955,3770502,3771084,3771640,3772203,3772749,3773331,3773903,3774482,3775036,3775575,3776169,3776719,3777254,3777817,3778395,3778971,3779511,3780070,3780633,3781195,3781756,3782295,3782863,3783427,3783966,3784520,3785086,3785616,3786172,3786735,3787283,3787848,3788399,3788945,3789524,3790087,3790643,3791223,3791761,3792323,3792881,3793452,3794001,3794534,3795059,3795634,3796206,3796771,3797322,3797872,3798401,3798955,3799529,3800075,3800644,3801245,3801803,3802346,3802883,3803433,3804000,3804563,3805109,3805659,3806221,3806787,3807345,3807918,3808484,3809016,3809574,3810129,3810692,3811243,3811776,3812330,3812899,3813457,3814010,3814575,3815115,3815666,3816231,3816772,3817297,3817848,3818389,3818952,3819475,3820038,3820579,3821145,3821704,3822259,3822824,3823380,3823937,3824484,3825042,3825613,3826126,3826671,3827245,3827762,3828313,3828880,3829432,3829977,3830544,3831096,3831661,3832216,3832743,3833304,3833852,3834416,3835002,3835570,3836095,3836648,3837209,3837773,3838330,3838873,3839446,3839995,3840554,3841096,3841672,3842238,3842828,3843366,3843916,3844470,3845033,3845580,3846130,3846688,3847221,3847787,3848308,3848854,3849434,3849994,3850513,3851071,3851637,3852184,3852717,3853306,3853858,3854397,3854941,3855502,3856067,3856644,3857201,3857753,3858310,3858856,3859428,3860000,3860539,3861066,3861614,3862159,3862694,3863282,3863855,3864437,3864994,3865556,3866107,3866715,3867280,3867837,3868404,3868943,3869480,3870032,3870584,3871132,3871684,3872229,3872790,3873356,3873874,3874452,3874995,3875544,3876118,3876654,3877186,3877717,3878299,3878859,3879427,3879992,3880520,3881069,3881629,3882194,3882726,3883295,3883825,3884387,3884941,3885505,3886079,3886627,3887185,3887747,3888315,3888880,3889422,3889965,3890503,3891087,3891648,3892220,3892750,3893291,3893872,3894433,3894998,3895577,3896123,3896699,3897234,3897785,3898367,3898927,3899494,3900052,3900610,3901162,3901727,3902282,3902829,3903383,3903928,3904451,3905015,3905586,3906156,3906726,3907301,3907845,3908413,3908960,3909532,3910097,3910639,3911173,3911735,3912277,3912842,3913439,3914001,3914571,3915135,3915688,3916235,3916782,3917362,3917940,3918498,3919049,3919591,3920138,3920698,3921241,3921799,3922356,3922904,3923453,3924009,3924595,3925144,3925704,3926245,3926795,3927340,3927894,3928447,3929003,3929584,3930145,3930710,3931247,3931808,3932364,3932922,3933492,3934043,3934628,3935173,3935726,3936263,3936813,3937361,3937919,3938467,3939021,3939579,3940138,3940685,3941230,3941780,3942324,3942872,3943426,3943994,3944569,3945134,3945696,3946251,3946765,3947327,3947883,3948438,3949002,3949537,3950082,3950645,3951189,3951767,3952314,3952869,3953417,3953959,3954541,3955071,3955631,3956193,3956727,3957296,3957864,3958402,3958954,3959507,3960026,3960595,3961143,3961720,3962276,3962821,3963414,3963948,3964505,3965053,3965620,3966185,3966728,3967291,3967880,3968429,3969010,3969559,3970119,3970670,3971195,3971775,3972328,3972871,3973428,3973996,3974564,3975112,3975674,3976228,3976781,3977357,3977934,3978479,3979034,3979592,3980149,3980693,3981245,3981804,3982351,3982908,3983460,3984031,3984596,3985158,3985693,3986258,3986777,3987341,3987903,3988450,3989012,3989577,3990118,3990671,3991228,3991805,3992365,3992917,3993497,3994033,3994599,3995097,3995674,3996216,3996771,3997327,3997880,3998434,3998986,3999561,4000118,4000663,4001222,4001767,4002333,4002910,4003464,4004020,4004564,4005142,4005709,4006232,4006798,4007342,4007894,4008441,4009000,4009541,4010121,4010668,4011227,4011767,4012330,4012851,4013407,4013976,4014536,4015086,4015634,4016188,4016735,4017290,4017822,4018394,4018947,4019528,4020066,4020627,4021200,4021738,4022308,4022838,4023397,4023969,4024512,4025048,4025609,4026154,4026710,4027259,4027797,4028340,4028889,4029475,4030020,4030578,4031137,4031672,4032201,4032774,4033348,4033911,4034482,4035037,4035596,4036119,4036687,4037208,4037766,4038318,4038890,4039447,4039993,4040549,4041100,4041652,4042183,4042745,4043292,4043861,4044432,4044959,4045500,4046078,4046637,4047193,4047747,4048290,4048832,4049381,4049947,4050507,4051042,4051617,4052139,4052671,4053212,4053792,4054342,4054886,4055469,4056017,4056595,4057149,4057672,4058221,4058782,4059304,4059868,4060423,4060974,4061537,4062094,4062674,4063251,4063808,4064325,4064870,4065431,4065991,4066540,4067106,4067651,4068213,4068734,4069300,4069872,4070436,4070966,4071500,4072061,4072619,4073157,4073713,4074269,4074817,4075365,4075895,4076435,4076990,4077512,4078085,4078649,4079200,4079757,4080312,4080874,4081442,4081983,4082567,4083126,4083674,4084238,4084816,4085386,4085943,4086464,4087040,4087619,4088174,4088732,4089294,4089834,4090382,4090949,4091499,4092050,4092621,4093163,4093734,4094310,4094858,4095409,4095945,4096507,4097055,4097603,4098159,4098714,4099283,4099846,4100393,4100953,4101517,4102068,4102625,4103187,4103721,4104270,4104863,4105415,4105964,4106519,4107066,4107618,4108142,4108729,4109297,4109851,4110376,4110920,4111479,4112034,4112568,4113126,4113675,4114239,4114774,4115348,4115878,4116415,4116958,4117501,4118064,4118598,4119167,4119720,4120272,4120835,4121375,4121941,4122461,4123022,4123596,4124139,4124705,4125236,4125784,4126337,4126884,4127449,4128035,4128576,4129145,4129665,4130198,4130772,4131325,4131914,4132470,4133014,4133553,4134113,4134696,4135259,4135797,4136348,4136897,4137447,4138016,4138561,4139113,4139656,4140216,4140791,4141350,4141911,4142477,4143021,4143562,4144120,4144686,4145263,4145831,4146386,4146909,4147470,4148010,4148586,4149138,4149681,4150254,4150805,4151356,4151938,4152477,4153000,4153525,4154051,4154622,4155159,4155732,4156280,4156813,4157363,4157924,4158500,4159051,4159609,4160169,4160679,4161211,4161769,4162309,4162860,4163410,4163962,4164525,4165059,4165625,4166188,4166753,4167288,4167847,4168391,4168936,4169482,4170060,4170610,4171164,4171738,4172281,4172832,4173373,4173924,4174500,4175042,4175582,4176110,4176669,4177224,4177778,4178356,4178911,4179469,4179994,4180567,4181146,4181718,4182243,4182785,4183309,4183860,4184420,4184969,4185529,4186109,4186667,4187200,4187748,4188310,4188882,4189422,4189971,4190520,4191080,4191621,4192155,4192716,4193274,4193824,4194384,4194940,4195467,4196061,4196623,4197193,4197746,4198322,4198898,4199451,4199996,4200557,4201083,4201646,4202204,4202773,4203300,4203870,4204428,4204980,4205518,4206082,4206661,4207217,4207772,4208321,4208850,4209426,4209984,4210522,4211061,4211633,4212176,4212714,4213244,4213797,4214349,4214921,4215465,4215985,4216488,4217046,4217594,4218148,4218722,4219285,4219817,4220393,4220945,4221496,4222056,4222612,4223154,4223716,4224283,4224851,4225374,4225925,4226467,4227017,4227568,4228109,4228658,4229198,4229765,4230307,4230864,4231442,4231992,4232566,4233105,4233674,4234244,4234788,4235351,4235906,4236445,4237020,4237568,4238117,4238689,4239264,4239815,4240399,4240957,4241525,4242062,4242613,4243164,4243725,4244280,4244842,4245417,4245968,4246530,4247074,4247620,4248172,4248732,4249271,4249825,4250369,4250930,4251498,4252047,4252574,4253137,4253695,4254213,4254782,4255313,4255879,4256409,4256955,4257511,4258066,4258657,4259196,4259800,4260316,4260871,4261415,4261936,4262484,4263040,4263600,4264137,4264689,4265222,4265786,4266338,4266896,4267454,4268015,4268583,4269126,4269669,4270239,4270768,4271277,4271839,4272374,4272940,4273522,4274083,4274638,4275204,4275770,4276333,4276859,4277412,4277974,4278523,4279085,4279640,4280192,4280745,4281309,4281840,4282400,4282965,4283511,4284089,4284632,4285178,4285726,4286300,4286851,4287408,4287942,4288508,4289046,4289594,4290157,4290691,4291231,4291787,4292348,4292891,4293415,4293958,4294508,4295059,4295601,4296158,4296713,4297261,4297806,4298365,4298940,4299471,4300017,4300578,4301139,4301702,4302242,4302808,4303359,4303901,4304470,4305007,4305585,4306121,4306657,4307185,4307736,4308288,4308849,4309364,4309927,4310491,4311042,4311582,4312150,4312686,4313249,4313810,4314364,4314950,4315501,4316050,4316636,4317182,4317723,4318241,4318805,4319379,4319914,4320477,4321048,4321600,4322132,4322713,4323278,4323833,4324379,4324914,4325455,4326018,4326550,4327102,4327665,4328194,4328748,4329299,4329866,4330405,4330943,4331529,4332072,4332619,4333187,4333750,4334295,4334869,4335420,4335941,4336485,4337078,4337613,4338147,4338726,4339254,4339802,4340347,4340889,4341439,4341974,4342528,4343053,4343577,4344116,4344668,4345243,4345809,4346328,4346915,4347444,4348011,4348516,4349088,4349652,4350186,4350764,4351318,4351859,4352423,4352951,4353496,4354041,4354603,4355154,4355687,4356233,4356797,4357346,4357898,4358453,4359005,4359561,4360117,4360665,4361240,4361775,4362322,4362868,4363425,4363998,4364555,4365092,4365644,4366163,4366707,4367267,4367823,4368353,4368936,4369487,4370010,4370546,4371108,4371657,4372244,4372814,4373364,4373894,4374437,4374994,4375551,4376091,4376612,4377184,4377733,4378290,4378847,4379405,4379954,4380486,4381058,4381618,4382164,4382738,4383283,4383842,4384388,4384944,4385489,4386020,4386565,4387101,4387653,4388216,4388818,4389361,4389901,4390472,4391022,4391561,4392105,4392660,4393202,4393765,4394304,4394860,4395382,4395907,4396467,4397021,4397583,4398131,4398695,4399258,4399810,4400366,4400932,4401468,4402000,4402555,4403117,4403683,4404225,4404783,4405341,4405889,4406488,4407027,4407587,4408130,4408683,4409239,4409796,4410335,4410890,4411455,4412002,4412562,4413112,4413658,4414220,4414767,4415301,4415862,4416432,4417005,4417528,4418115,4418678,4419210,4419771,4420330,4420873,4421412,4421976,4422536,4423085,4423636,4424152,4424712,4425275,4425798,4426369,4426923,4427437,4427987,4428548,4429104,4429658,4430225,4430777,4431343,4431864,4432422,4432986,4433531,4434082,4434617,4435155,4435736,4436288,4436821,4437388,4437964,4438498,4439072,4439616,4440154,4440738,4441290,4441826,4442399,4442969,4443511,4444056,4444617,4445172,4445711,4446242,4446785,4447384,4447933,4448498,4449055,4449611,4450168,4450729,4451257,4451800,4452363,4452904,4453445,4454004,4454552,4455090,4455642,4456190,4456747,4457297,4457844,4458407,4458960,4459503,4460059,4460606,4461156,4461717,4462235,4462774,4463324,4463875,4464427,4464969,4465500,4466047,4466614,4467150,4467693,4468229,4468787,4469342,4469914,4470488,4471029,4471575,4472113,4472673,4473228,4473790,4474317,4474863,4475414,4475944,4476493,4477022,4477550,4478122,4478665,4479236,4479797,4480353,4480928,4481452,4481966,4482514,4483078,4483614,4484190,4484727,4485269,4485840,4486351,4486877,4487443,4487991,4488550,4489090,4489642,4490159,4490713,4491257,4491801,4492375,4492927,4493464,4494007,4494582,4495156,4495703,4496244,4496788,4497330,4497875,4498451,4498997,4499547,4500098,4500633,4501181,4501755,4502321,4502861,4503424,4503962,4504535,4505123,4505668,4506213,4506758,4507299,4507842,4508388,4508940,4509488,4510062,4510592,4511138,4511693,4512258,4512806,4513364,4513932,4514490,4515013,4515582,4516130,4516685,4517233,4517778,4518327,4518867,4519395,4519975,4520497,4521040,4521619,4522146,4522690,4523246,4523830,4524385,4524929,4525464,4526006,4526576,4527134,4527650,4528207,4528766,4529300,4529842,4530385,4530938,4531501,4532043,4532587,4533139,4533694,4534250,4534794,4535340,4535899,4536443,4537007,4537551,4538110,4538653,4539176,4539737,4540278,4540799,4541361,4541897,4542463,4543007,4543542,4544112,4544689,4545249,4545788,4546313,4546884,4547416,4547977,4548526,4549082,4549620,4550165,4550728,4551253,4551826,4552384,4552927,4553480,4554051,4554622,4555166,4555726,4556258,4556803,4557369,4557907,4558457,4558996,4559545,4560112,4560662,4561192,4561757,4562324,4562877,4563405,4563957,4564500,4565039,4565616,4566162,4566729,4567273,4567839,4568364,4568930,4569497,4570038,4570576,4571113,4571675,4572237,4572789,4573308,4573847,4574399,4574937,4575472,4576018,4576574,4577115,4577632,4578186,4578736,4579306,4579844,4580402,4580967,4581510,4582051,4582570,4583108,4583660,4584205,4584757,4585292,4585848,4586384,4586928,4587499,4588052,4588603,4589167,4589727,4590271,4590824,4591404,4591940,4592508,4593028,4593593,4594119,4594664,4595214,4595781,4596319,4596880,4597436,4597956,4598504,4599077,4599618,4600189,4600774,4601318,4601855,4602396,4602964,4603527,4604066,4604594,4605148,4605697,4606241,4606756,4607309,4607862,4608418,4608973,4609512,4610075,4610606,4611146,4611705,4612274,4612826,4613362,4613925,4614444,4614985,4615539,4616111,4616653,4617202,4617767,4618318,4618875,4619429,4619984,4620557,4621093,4621622,4622181,4622738,4623258,4623819,4624373,4624919,4625477,4626031,4626586,4627128,4627682,4628240,4628760,4629314,4629849,4630398,4630913,4631469,4632042,4632560,4633119,4633653,4634212,4634764,4635318,4635876,4636426,4636997,4637551,4638127,4638669,4639205,4639752,4640323,4640868,4641392,4641948,4642521,4643047,4643594,4644149,4644694,4645233,4645781,4646358,4646891,4647416,4647983,4648532,4649093,4649669,4650219,4650790,4651310,4651870,4652391,4652931,4653485,4654051,4654629,4655162,4655708,4656218,4656776,4657321,4657875,4658439,4658985,4659522,4660058,4660630,4661160,4661731,4662278,4662825,4663403,4663932,4664469,4665014,4665570,4666111,4666661,4667232,4667786,4668331,4668844,4669382,4669893,4670437,4670980,4671539,4672095,4672620,4673173,4673749,4674315,4674878,4675420,4675989,4676531,4677080,4677608,4678166,4678701,4679233,4679780,4680315,4680879,4681412,4681958,4682525,4683097,4683649,4684212,4684762,4685332,4685896,4686439,4686978,4687534,4688087,4688630,4689173,4689700,4690247,4690810,4691370,4691941,4692510,4693037,4693565,4694132,4694701,4695244,4695797,4696349,4696908,4697466,4698004,4698547,4699088,4699624,4700186,4700714,4701289,4701821,4702361,4702900,4703440,4703993,4704553,4705102,4705659,4706202,4706734,4707277,4707853,4708387,4708927,4709468,4710045,4710593,4711183,4711719,4712267,4712820,4713384,4713909,4714463,4715038,4715558,4716129,4716707,4717258,4717814,4718361,4718907,4719451,4720008,4720543,4721092,4721648,4722205,4722748,4723318,4723872,4724410,4724986,4725566,4726139,4726659,4727205,4727768,4728328,4728898,4729435,4730004,4730562,4731123,4731673,4732228,4732783,4733327,4733892,4734421,4734960,4735525,4736078,4736597,4737148,4737683,4738280,4738830,4739378,4739914,4740439,4740992,4741516,4742067,4742612,4743174,4743717,4744261,4744817,4745381,4745934,4746465,4747030,4747593,4748143,4748710,4749255,4749816,4750373,4750919,4751465,4752027,4752541,4753082,4753620,4754155,4754716,4755267,4755805,4756356,4756938,4757470,4757996,4758554,4759119,4759685,4760194,4760748,4761291,4761867,4762426,4762951,4763518,4764048,4764582,4765125,4765697,4766221,4766772,4767322,4767864,4768393,4768953,4769497,4770050,4770599,4771176,4771705,4772251,4772792,4773367,4773922,4774458,4774995,4775555,4776115,4776650,4777208,4777743,4778298,4778845,4779430,4779977,4780543,4781096,4781642,4782196,4782737,4783275,4783856,4784426,4784949,4785502,4786025,4786588,4787153,4787699,4788217,4788759,4789315,4789873,4790384,4790925,4791467,4792010,4792574,4793100,4793637,4794176,4794719,4795259,4795812,4796352,4796910,4797473,4798010,4798579,4799129,4799659,4800206,4800758,4801310,4801834,4802405,4802948,4803499,4804071,4804577,4805154,4805736,4806236,4806760,4807316,4807888,4808403,4808985,4809524,4810072,4810643,4811192,4811742,4812305,4812828,4813348,4813904,4814466,4815022,4815574,4816125,4816668,4817252,4817816,4818362,4818922,4819456,4819990,4820517,4821057,4821607,4822158,4822729,4823303,4823842,4824399,4824971,4825514,4826072,4826638,4827194,4827757,4828283,4828831,4829380,4829918,4830463,4831026,4831572,4832124,4832670,4833200,4833753,4834317,4834856,4835402,4835983,4836530,4837069,4837589,4838145,4838678,4839230,4839762,4840297,4840859,4841386,4841934,4842501,4843030,4843589,4844116,4844656,4845183,4845734,4846277,4846809,4847359,4847901,4848451,4849013,4849559,4850119,4850683,4851200,4851743,4852299,4852856,4853392,4853929,4854474,4855013,4855567,4856110,4856673,4857227,4857766,4858316,4858868,4859409,4859950,4860500,4861061,4861617,4862157,4862704,4863246,4863784,4864338,4864897,4865448,4865999,4866532,4867093,4867643,4868201,4868749,4869264,4869773,4870334,4870886,4871427,4871965,4872513,4873040,4873614,4874183,4874748,4875322,4875863,4876416,4876956,4877499,4878005,4878594,4879142,4879684,4880279,4880813,4881365,4881906,4882464,4883018,4883558,4884130,4884682,4885233,4885798,4886383,4886948,4887493,4888039,4888587,4889139,4889684,4890220,4890784,4891323,4891851,4892400,4892932,4893450,4893996,4894521,4895064,4895624,4896181,4896732,4897278,4897806,4898348,4898889,4899434,4899985,4900510,4901057,4901593,4902137,4902695,4903260,4903784,4904337,4904900,4905417,4905999,4906542,4907089,4907643,4908173,4908735,4909295,4909839,4910389,4910914,4911444,4912003,4912548,4913102,4913659,4914232,4914768,4915331,4915907,4916472,4916998,4917533,4918088,4918630,4919151,4919695,4920260,4920805,4921330,4921878,4922434,4922954,4923485,4924045,4924592,4925141,4925678,4926228,4926769,4927326,4927884,4928424,4928980,4929529,4930079,4930642,4931163,4931720,4932285,4932826,4933364,4933893,4934450,4934980,4935540,4936097,4936647,4937181,4937712,4938246,4938798,4939339,4939879,4940427,4940978,4941530,4942111,4942624,4943184,4943731,4944276,4944799,4945307,4945867,4946398,4946947,4947519,4948056,4948610,4949180,4949709,4950227,4950792,4951345,4951903,4952449,4953003,4953538,4954073,4954637,4955162,4955728,4956234,4956789,4957346,4957927,4958464,4958998,4959530,4960077,4960632,4961189,4961751,4962331,4962881,4963393,4963937,4964502,4965052,4965591,4966163,4966712,4967273,4967844,4968394,4968925,4969474,4970038,4970561,4971112,4971654,4972244,4972795,4973331,4973895,4974417,4974949,4975488,4976039,4976569,4977109,4977667,4978229,4978758,4979319,4979881,4980420,4980970,4981519,4982049,4982564,4983106,4983670,4984241,4984781,4985335,4985884,4986432,4986955,4987530,4988073,4988606,4989160,4989723,4990265,4990807,4991348,4991917,4992462,4993012,4993578,4994112,4994662,4995196,4995735,4996290,4996845,4997388,4997934,4998470,4999002,4999554,5000102,5000655,5001224,5001767,5002307,5002877,5003469,5003979,5004531,5005080,5005608,5006158,5006678,5007235,5007775,5008310,5008881,5009407,5009960,5010499,5011034,5011562,5012131,5012669,5013210,5013771,5014336,5014862,5015439,5015971,5016514,5017026,5017600,5018141,5018698,5019230,5019803,5020351,5020881,5021406,5021996,5022549,5023095,5023658,5024197,5024740,5025296,5025823,5026396,5026972,5027525,5028058,5028597,5029166,5029697,5030231,5030769,5031315,5031847,5032410,5032987,5033545,5034082,5034600,5035141,5035701,5036236,5036778,5037336,5037877,5038429,5038967,5039520,5040063,5040618,5041159,5041723,5042266,5042822,5043369,5043901,5044441,5044968,5045531,5046097,5046653,5047201,5047761,5048298,5048843,5049368,5049920,5050448,5050995,5051532,5052097,5052629,5053180,5053743,5054303,5054860,5055402,5055944,5056498,5057040,5057605,5058150,5058696,5059213,5059745,5060278,5060829,5061366,5061937,5062490,5063037,5063564,5064123,5064702,5065240,5065783,5066335,5066888,5067424,5067976,5068505,5069077,5069614,5070160,5070705,5071267,5071795,5072336,5072890,5073430,5073966,5074515,5075035,5075549,5076082,5076634,5077187,5077721,5078278,5078819,5079386,5079917,5080463,5081013,5081578,5082134,5082681,5083232,5083771,5084307,5084868,5085399,5085953,5086510,5087076,5087609,5088142,5088697,5089237,5089779,5090308,5090880,5091415,5091968,5092484,5093030,5093565,5094123,5094664,5095205,5095764,5096314,5096846,5097388,5097948,5098492,5099044,5099585,5100135,5100669,5101249,5101797,5102346,5102891,5103432,5103991,5104535,5105075,5105617,5106170,5106717,5107305,5107832,5108382,5108911,5109483,5110039,5110577,5111141,5111724,5112257,5112830,5113355,5113907,5114457,5114973,5115523,5116036,5116593,5117175,5117696,5118231,5118792,5119345,5119901,5120473,5121045,5121609,5122171,5122715,5123248,5123796,5124356,5124899,5125441,5125987,5126523,5127078,5127620,5128170,5128696,5129235,5129773,5130332,5130906,5131458,5132010,5132544,5133078,5133615,5134159,5134694,5135233,5135751,5136297,5136828,5137358,5137879,5138417,5138969,5139518,5140041,5140593,5141162,5141709,5142277,5142836,5143393,5143927,5144460,5145016,5145527,5146076,5146614,5147181,5147744,5148277,5148818,5149369,5149907,5150452,5151002,5151557,5152105,5152664,5153214,5153762,5154315,5154884,5155423,5155959,5156517,5157087,5157609,5158168,5158754,5159287,5159839,5160383,5160930,5161462,5162020,5162565,5163090,5163612,5164153,5164726,5165255,5165792,5166332,5166899,5167442,5167987,5168552,5169107,5169637,5170178,5170718,5171296,5171861,5172398,5172959,5173502,5174045,5174591,5175140,5175693,5176254,5176797,5177357,5177886,5178446,5178996,5179530,5180046,5180615,5181172,5181708,5182240,5182764,5183299,5183837,5184377,5184950,5185488,5186036,5186599,5187106,5187666,5188204,5188745,5189279,5189833,5190370,5190912,5191469,5192008,5192528,5193081,5193626,5194167,5194717,5195242,5195807,5196370,5196908,5197438,5197964,5198493,5199025,5199587,5200118,5200653,5201187,5201736,5202283,5202804,5203360,5203883,5204435,5204958,5205488,5206040,5206581,5207099,5207672,5208216,5208779,5209350,5209880,5210417,5210964,5211514,5212069,5212629,5213152,5213679,5214224,5214764,5215298,5215859,5216408,5216954,5217496,5218063,5218632,5219175,5219689,5220236,5220805,5221360,5221935,5222465,5222984,5223553,5224114,5224658,5225207,5225764,5226315,5226879,5227427,5227980,5228505,5229042,5229577,5230138,5230699,5231241,5231771,5232322,5232868,5233446,5233980,5234546,5235096,5235658,5236206,5236757,5237319,5237830,5238375,5238911,5239472,5240022,5240555,5241081,5241645,5242208,5242767,5243310,5243870,5244409,5244971,5245517,5246056,5246580,5247101,5247664,5248210,5248744,5249288,5249828,5250360,5250921,5251468,5252017,5252548,5253097,5253601,5254161,5254718,5255274,5255826,5256374,5256922,5257426,5257993,5258553,5259111,5259659,5260193,5260749,5261289,5261826,5262397,5262945,5263470,5263995,5264540,5265091,5265646,5266190,5266716,5267297,5267868,5268429,5268991,5269552,5270070,5270600,5271120,5271659,5272216,5272750,5273304,5273859,5274396,5274933,5275484,5276011,5276575,5277103,5277647,5278183,5278729,5279296,5279824,5280370,5280916,5281472,5282031,5282580,5283143,5283683,5284238,5284792,5285360,5285892,5286441,5287012,5287555,5288120,5288685,5289220,5289722,5290281,5290811,5291382,5291934,5292461,5293000,5293544,5294085,5294625,5295145,5295689,5296245,5296785,5297326,5297872,5298435,5298991,5299521,5300049,5300601,5301167,5301699,5302262,5302776,5303307,5303848,5304404,5304977,5305526,5306076,5306584,5307163,5307696,5308241,5308812,5309365,5309926,5310467,5311035,5311584,5312121,5312661,5313213,5313758,5314286,5314824,5315370,5315910,5316429,5316957,5317486,5318036,5318586,5319132,5319666,5320219,5320738,5321305,5321827,5322357,5322889,5323494,5324037,5324610,5325158,5325684,5326237,5326774,5327308,5327838,5328420,5328961,5329494,5330039,5330604,5331156,5331696,5332224,5332796,5333335,5333889,5334430,5334964,5335484,5336034,5336581,5337154,5337693,5338236,5338783,5339302,5339852,5340390,5340943,5341472,5342026,5342570,5343114,5343652,5344191,5344731,5345254,5345795,5346340,5346886,5347455,5348002,5348539,5349063,5349621,5350160,5350727,5351281,5351823,5352360,5352909,5353469,5354027,5354538,5355069,5355616,5356185,5356731,5357284,5357805,5358323,5358873,5359423,5359985,5360520,5361096,5361640,5362165,5362711,5363262,5363825,5364374,5364931,5365483,5366019,5366566,5367129,5367668,5368207,5368749,5369291,5369836,5370378,5370950,5371499,5372045,5372610,5373132,5373647,5374205,5374748,5375312,5375863,5376428,5376958,5377482,5378043,5378566,5379114,5379638,5380162,5380681,5381231,5381757,5382298,5382823,5383361,5383919,5384448,5384993,5385537,5386095,5386631,5387194,5387713,5388249,5388814,5389356,5389909,5390462,5391039,5391573,5392117,5392639,5393191,5393726,5394262,5394829,5395371,5395893,5396422,5396981,5397520,5398087,5398635,5399178,5399730,5400303,5400853,5401405,5401929,5402487,5403002,5403567,5404105,5404621,5405168,5405750,5406300,5406849,5407377,5407914,5408494,5409033,5409569,5410103,5410647,5411184,5411730,5412278,5412818,5413340,5413879,5414450,5414980,5415516,5416074,5416617,5417151,5417693,5418236,5418747,5419282,5419837,5420393,5420929,5421483,5422037,5422589,5423100,5423641,5424169,5424719,5425300,5425832,5426378,5426924,5427453,5428005,5428562,5429117,5429670,5430224,5430781,5431326,5431880,5432397,5432948,5433494,5434024,5434563,5435104,5435663,5436204,5436791,5437344,5437877,5438438,5439002,5439544,5440102,5440645,5441210,5441732,5442266,5442780,5443331,5443904,5444439,5444968,5445487,5446042,5446601,5447140,5447701,5448241,5448779,5449330,5449854,5450408,5450956,5451511,5452045,5452591,5453129,5453652,5454191,5454748,5455284,5455832,5456382,5456922,5457471,5458006,5458547,5459093,5459634,5460177,5460737,5461273,5461825,5462366,5462946,5463482,5464017,5464579,5465116,5465648,5466172,5466709,5467258,5467823,5468374,5468911,5469466,5469995,5470553,5471100,5471621,5472178,5472730,5473280,5473785,5474318,5474890,5475431,5475994,5476516,5477081,5477617,5478151,5478704,5479267,5479821,5480395,5480961,5481494,5482044,5482606,5483153,5483695,5484246,5484807,5485347,5485914,5486473,5486998,5487575,5488113,5488660,5489209,5489749,5490301,5490853,5491383,5491882,5492451,5492985,5493538,5494079,5494613,5495144,5495704,5496249,5496764,5497307,5497869,5498398,5498936,5499490,5500053,5500596,5501139,5501701,5502257,5502790,5503329,5503859,5504398,5504953,5505502,5506042,5506593,5507148,5507679,5508206,5508763,5509271,5509808,5510372,5510922,5511483,5512008,5512576,5513136,5513691,5514227,5514775,5515328,5515906,5516451,5516967,5517536,5518077,5518635,5519178,5519728,5520286,5520801,5521342,5521880,5522414,5522962,5523484,5524035,5524573,5525105,5525663,5526183,5526743,5527294,5527834,5528365,5528898,5529427,5529965,5530498,5531059,5531580,5532137,5532677,5533229,5533745,5534330,5534873,5535423,5535973,5536524,5537085,5537606,5538181,5538712,5539273,5539814,5540340,5540892,5541429,5541985,5542575,5543105,5543671,5544201,5544747,5545263,5545813,5546351,5546880,5547416,5547956,5548489,5549038,5549569,5550139,5550684,5551223,5551749,5552288,5552859,5553422,5553984,5554500,5555003,5555549,5556051,5556603,5557144,5557687,5558243,5558787,5559333,5559881,5560413,5560952,5561504,5562062,5562603,5563146,5563686,5564221,5564762,5565326,5565874,5566430,5566993,5567529,5568081,5568595,5569139,5569681,5570210,5570755,5571310,5571826,5572345,5572890,5573430,5573985,5574539,5575102,5575645,5576191,5576734,5577286,5577851,5578411,5578961,5579506,5580055,5580601,5581136,5581708,5582247,5582804,5583332,5583874,5584387,5584929,5585509,5586035,5586572,5587120,5587668,5588226,5588781,5589333,5589868,5590376,5590919,5591467,5592025,5592556,5593068,5593616,5594172,5594688,5595248,5595785,5596365,5596908,5597472,5598002,5598565,5599131,5599661,5600196,5600734,5601293,5601846,5602371,5602914,5603459,5604003,5604549,5605086,5605622,5606146,5606684,5607245,5607764,5608316,5608833,5609349,5609871,5610409,5610942,5611491,5612064,5612626,5613171,5613714,5614253,5614798,5615337,5615892,5616420,5616960,5617503,5618024,5618584,5619116,5619670,5620231,5620770,5621321,5621856,5622404,5622939,5623492,5624073,5624630,5625166,5625732,5626299,5626837,5627381,5627943,5628506,5629054,5629603,5630154,5630718,5631229,5631785,5632333,5632878,5633396,5633943,5634501,5635061,5635561,5636120,5636652,5637191,5637730,5638287,5638842,5639391,5639914,5640456,5641005,5641574,5642089,5642650,5643213,5643775,5644313,5644847,5645356,5645912,5646446,5646984,5647525,5648102,5648658,5649231,5649778,5650300,5650862,5651389,5651929,5652467,5652996,5653527,5654042,5654609,5655123,5655649,5656224,5656759,5657298,5657852,5658353,5658901,5659439,5659978,5660520,5661065,5661581,5662120,5662673,5663213,5663764,5664300,5664869,5665420,5665958,5666490,5667058,5667580,5668145,5668697,5669215,5669763,5670285,5670850,5671395,5671937,5672480,5673034,5673592,5674134,5674668,5675193,5675738,5676286,5676839,5677418,5677949,5678498,5679028,5679552,5680084,5680649,5681211,5681774,5682332,5682868,5683406,5683961,5684493,5685054,5685585,5686119,5686673,5687215,5687759,5688310,5688853,5689402,5689922,5690462,5691004,5691524,5692068,5692607,5693152,5693699,5694225,5694732,5695250,5695793,5696345,5696885,5697429,5697970,5698538,5699084,5699612,5700161,5700684,5701236,5701777,5702310,5702825,5703369,5703894,5704424,5704947,5705481,5706033,5706568,5707123,5707681,5708251,5708787,5709361,5709913,5710454,5711016,5711543,5712101,5712622,5713170,5713681,5714211,5714785,5715335,5715872,5716396,5716965,5717479,5718013,5718536,5719063,5719633,5720183,5720709,5721240,5721777,5722296,5722838,5723381,5723897,5724428,5724994,5725553,5726112,5726659,5727187,5727741,5728302,5728833,5729348,5729898,5730435,5730948,5731483,5732043,5732601,5733170,5733721,5734258,5734793,5735328,5735866,5736405,5736951,5737505,5738058,5738604,5739132,5739705,5740284,5740870,5741416,5741952,5742495,5743033,5743571,5744097,5744638,5745162,5745694,5746262,5746808,5747331,5747855,5748384,5748931,5749491,5750019,5750539,5751095,5751639,5752173,5752725,5753259,5753803,5754365,5754910,5755470,5756002,5756554,5757092,5757627,5758185,5758721,5759273,5759829,5760378,5760923,5761455,99999999}; bool Isprime(int x){ if(x == 2 || x==3)return true; if(x == 1)return false; int len = sqrt((double)x)+1; for(int i = 2;i <=len; i++) if(x%i == 0)return false; return true; } int go(int x){ for(int i = 0;i<10001;i++) if(i*10000 + 1 > x)return i-1; } int main(){ int n; while(~scanf("%d",&n)){ int hehe = ans[go(n)]; for(int i = go(n)*10000+2;i<=n;i++) hehe+=Isprime(i); printf("%d\n",hehe); } return 0; }
作者:qq574857122 发表于2013-12-18 1:19:01 原文链接
阅读:74 评论:0 查看评论