ãç¥åè«ç¾©
ã¾ãç§ã¿ãããªäººéã§ãææçµå©å¼ã«ããã§ä¸ããæ¹ãããã£ããã£ã¦ï¼ã¾ãï¼ãããã人ã«éã£ã¦ï¼ããªãã ãããã©ï¼ãªã¼ã½ããã¯ã¹ãªçµå©å¼ããã¦ãããï¼
ã§ï¼ãªã¼ã½ããã¯ã¹ãªçµå©å¼ã«ä»ãç©ã¨ããã°ãç¥åï¼å²ãåãã¡ããããªãããå¶æ°ã¯è¯ããªãã¨ããã¤ã¤ï¼æãã£ããå¶æ°ã®æ°åãéãä»ããã®ãæ°æã¡æªãã¦ãããããªãã£ãï¼
ååã®çµå©å¼ã§ã¯ç´ æ°ã§ãã30011åãéã£ãããã ãã©ï¼ã³ã¤ã³äºã¤ã¨ããã®ã¯é³ããã¦ãªããæ°åãè½ã¡çããªãï¼ä»åã¯é¢åãããã£ãã®ã§ï¼30000åã®ãç¥åãè¢ã«è©°ãã¦åãã£ããï¼ã財å¸ãå¿ããã¨ããããå¾ãªããã¹ãç¯ããçµæï¼ãç¥åãå´©ãã¦å¸°ãããã®è³éãä½ãã¯ãã«ï¼ã§ï¼ãã®æã«ãç¥åã20000åã«ããã¨ããã®ãè¸ãç¡ãã®ã§ï¼é©å½ã«ç´ æ°ãéãä»ãããã¨è¨ç®ãããï¼21001åãè¦äºã«ã³ã¤ã³ä¸ã¤ã§ç´ æ°ã ã£ãã®ã§ï¼ãã®éé¡ãéããã¨ã«ï¼
ãããï¼ãããªæãã§ãç¥åã«ç´ æ°ãéãæã«ï¼ã¡ããã¡ããé³ãããªãçµã¿åããã£ã¦ã®ã¯ã©ãããããããã ããã¨è¨ç®ããã¨ï¼ãç¥åã¨ãã¦ç¾å®çãª10ä¸å以ä¸ã§ã¯ï¼
å¿
è¦ã³ã¤ã³æ°1æ 24éã
5, 3001, 4001, 7001, 9001, 13001, 16001, 19001, 21001, 24001, 28001, 51001, 54001, 55001, 61001, 69001, 70001, 76001, 81001, 88001, 90001, 93001, 96001, 97001
å¿ è¦ã³ã¤ã³æ°2æ 105éã
2, 11, 101, 1051, 2011, 3011, 4051, 5011, 5051, 5101, 5501, 6011, 6101, 8011, 8101, 8501, 9011, 10501, 12011, 12101, 14011, 14051, 15101, 17011, 19051, 19501, 20011, 20051, 20101, 21011, 21101, 22051, 22501, 23011, 26501, 27011, 28051, 29101, 29501, 30011, 31051, 32051, 34501, 35051, 36011, 37501, 38011, 38501, 41011, 41051, 42101, 43051, 44101, 44501, 46051, 47051, 47501, 50051, 50101, 52051, 52501, 53051, 53101, 54011, 54101, 55051, 55501, 56101, 56501, 59011, 59051, 60101, 61051, 62011, 62501, 65011, 65101, 68501, 69011, 70051, 70501, 71011, 72101, 74051, 74101, 75011, 77101, 78101, 80051, 81101, 82051, 83101, 84011, 86011, 86501, 87011, 89051, 89101, 89501, 90011, 92051, 95101, 97501, 98011, 98101
ã¨ãªãï¼æå¤ã¨ï¼é¸æè¢ã¯åºãï¼ãã ï¼å¿ è¦ã³ã¤ã³æ°1æã ã¨ãç¥åã¨ãã¦ä¸çªä¸è¬çã ã¨æã3-4ä¸åã®é åããã£ã½ããªãã®ããã©ããï¼
ãããï¼ä»æ¥è¡ã£ãçµå©å¼ï¼æ°éããããã人éãªã®ã§BGMã®8å²ãããã¢ãã¡ã½ã³ã°ï¼ã¨ãã£ã¦ãç¥ããªã人ã¯æ°ãã¤ããªãã®ãå¨å°ã«é¸ãã§ããï¼ã§ï¼ããããã¨æã£ãï¼ãã ï¼ã²ã¨ã¤ã ãï¼çµå©å¼ã«ã¬ã¼ãããã¯ç¸èµ·æªãããªãããã¨ã¡ãã£ã¨æã£ããï¼
ãã¨ï¼å
¨ç¶é¢ä¿ãªããã©ï¼Rubyã®mathnããã±ã¼ã¸ã®Primeã£ã¦ççã«é
ãï¼ããã¡ãã£ã¨ä½ã¨ããªããªããã ãããï¼ã ã£ã¦ï¼å¹³æ¹æ ¹ã¾ã§ã®æ°ã§æ®éã«å²ã£ã¦ãæ¹æ³ã§ï¼ç´ æ°ãåæããããã°ã©ã ãï¼Cã§æä½ã£ããã¨ãããã©ï¼intå
¨é¨èµ°æ»ããã®ã«1ç§ããããªãã£ããããªï¼