55件ヒット
[1-55件を表示]
(0.108秒)
種類
- インスタンスメソッド (44)
- 特異メソッド (11)
ライブラリ
- prime (55)
キーワード
- each (11)
-
each
_ with _ index (11) - new (11)
-
upper
_ bound (11) -
with
_ index (11)
検索結果
先頭5件
- Prime
:: PseudoPrimeGenerator # each -> self - Prime
:: PseudoPrimeGenerator # each _ with _ index {|prime , index| . . . } -> self - Prime
:: PseudoPrimeGenerator # upper _ bound -> Integer | nil - Prime
:: PseudoPrimeGenerator # with _ index {|prime , index| . . . } -> self - Prime
:: PseudoPrimeGenerator . new(upper _ bound = nil) -> Prime :: PseudoPrimeGenerator
-
Prime
:: PseudoPrimeGenerator # each -> self (201.0) -
素数を与えられたブロックに渡して評価します。
素数を与えられたブロックに渡して評価します。 -
Prime
:: PseudoPrimeGenerator # each _ with _ index {|prime , index| . . . } -> self (201.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...起点の連番を渡して評価します。
@return ブロックを与えられた場合は self を返します。 ブロックを与えられなかった場合は Enumerator を返します。
//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime,... -
Prime
:: PseudoPrimeGenerator # upper _ bound -> Integer | nil (201.0) -
現在の列挙上界を返します。 nil は上界がなく無限に素数を列挙すべきであることを意味します。
...現在の列挙上界を返します。 nil は上界がなく無限に素数を列挙すべきであることを意味します。... -
Prime
:: PseudoPrimeGenerator # with _ index {|prime , index| . . . } -> self (201.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...起点の連番を渡して評価します。
@return ブロックを与えられた場合は self を返します。 ブロックを与えられなかった場合は Enumerator を返します。
//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime,... -
Prime
:: PseudoPrimeGenerator . new(upper _ bound = nil) -> Prime :: PseudoPrimeGenerator (201.0) -
自身を初期化します。
自身を初期化します。
@param upper_bound 列挙する素数の上界を指定します。