fork download
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5. long long int t=0,b[100000]={0},j,i,p=0,a[]={0,0,0,0,0,0,6,0,0,0,10,0,0,0,14,15,0,0,0,0,20,21,22,0,0,0,26,0,28,0,0,0,0,33,34,35,0,0,38,39,40,0,0,0,44,45,46,0,0,0,50,51,52,0,0,55,56,57,58,0,0,0,62,63,0,65,0,0,68,69,70,0,0,0,74,75,76,77,0,0,80,0,82,0,0,85,86,87,88,0,0,91,92,93,94,95,0,0,98,99,100,0,102,0,104,105,106,0,108,0,110,111,112,0,114,115,116,117,118,119,120,0,122,123,124,0,126,0,0,129,130,0,132,133,134,135,136,0,138,0,140,141,142,143,144,145,146,147,148,0,150,0,152,153,154,155,156,0,158,159,160,161,162,0,164,165,166,0,168,0,170,171,172,0,174,175,176,177,178,0,180,0,182,183,184,185,186,187,188,189,190,0,192,0,194,195,196,0,198,0,200,201,202,203,204,205,0,207,0,209,210,0,0,213,0,215,216,217,0,219,220,221,222,0,0,225,0,0,228,0,230,231,0,0,234,235,0,237,238,0,240,0,242,0,0,245,246,247,0,249,250,0,252,253,0,255,0,0,258,259,260,261,0,0,264,265,266,267,0,0,270,0,0,273,0,275,276,0,0,279,280,0,282,0,0,285,286,287,288,0,290,291,0,0,294,295,0,297,0,299,300,301,0,303,0,305,306,0,308,0,310,0,312,0,0,315,0,0,318,319,0,0,322,323,324,325};
  6. for(i=1;i<10000;i++)
  7. {
  8. for(j=1;j<=i/2;j++)
  9. {
  10. if(i%j==0)
  11. p++;
  12. }
  13. if(a[p+1]== p+1)
  14. {b[t]=i;
  15. t++;
  16. }
  17. p=0;}
  18. for(i=8;i<=t;i=i+9)
  19. printf("%lld\n",b[i]);
  20. return 0;
  21. }
Success #stdin #stdout 0.65s 3564KB
stdin
Standard input is empty
stdout
50
99
162
208
268
324
369
428
507
556
604
657
725
801
867
925
976
1058
1124
1179
1252
1359
1424
1488
1539
1611
1684
1772
1813
1868
1968
2025
2092
2164
2256
2320
2416
2493
2529
2597
2672
2754
2832
2896
2989
3056
3136
3211
3280
3356
3428
3501
3568
3645
3725
3771
3856
3925
3988
4080
4156
4240
4325
4388
4475
4536
4656
4724
4804
4892
4944
5013
5104
5164
5232
5296
5424
5492
5571
5648
5712
5787
5836
5932
5994
6092
6196
6256
6352
6425
6484
6597
6656
6725
6813
6884
6957
7024
7120
7184
7280
7344
7408
7492
7614
7695
7767
7872
7948
8012
8108
8183
8272
8348
8425
8512
8577
8675
8752
8833
8912
8975
9072
9152
9232
9297
9388
9475
9549
9584
9668
9776
9868
9927