Rails
Ruby 2.5.0
6.1
6.0
5.2
5.1
5.0
4.2
2.6.0
2.7.0
3.0
instance method Prime::TrialDivisionGenerator#next
next -> Integer
[
permalink
][
rdoc
][
edit
]
succ -> Integer
次の(疑似)素数を返します。なお、この実装においては疑似素数は真に素数です。
また内部的な列挙位置を進めます。