
|
Go to the first, previous, next, last section, table of contents.
- prime(index)
-
- lprime(index)
-
:: ÁÇ¿ô¤òÊÖ¤¹
- return
-
À°¿ô
- index
-
À°¿ô
-
prime() , lprime() ¤¤¤º¤ì¤â¥·¥¹¥Æ¥à¤¬ÆâÉô¤Ë»ý¤Ä
ÁÇ¿ôɽ¤ÎÍ×ÁǤòÊÖ¤¹. index ¤Ï 0 °Ê¾å¤ÎÀ°¿ô¤Ç, ÁÇ¿ôɽ
¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤ËÍѤ¤¤é¤ì¤ë. prime() ¤Ï 16381 ¤Þ¤Ç
¤ÎÁÇ¿ô¤ò¾®¤µ¤¤½ç¤Ë 1900 ¸Ä, lprime() ¤Ï, 10 ¿Ê 8 ·å¤ÇºÇÂç¤Î
ÁÇ¿ô¤«¤éÂ礤¤½ç¤Ë 999 ¸ÄÊÖ¤¹. ¤½¤ì°Ê³°¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤ËÂФ·¤Æ¤Ï
0 ¤òÊÖ¤¹.
-
¤è¤ê°ìÈÌŪ¤ÊÁÇ¿ôÀ¸À®È¡¿ô¤È¤·¤Æ¤Ï,
pari(nextprime,number)
¤¬¤¢¤ë.
[95] prime(0);
2
[96] prime(1228);
9973
[97] lprime(0);
99999989
[98] lprime(999);
0
- »²¾È
-
section
pari .
Go to the first, previous, next, last section, table of contents.
|