るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.139秒)
トップページ > クエリ:I[x] > クエリ:h[x] > バージョン:3.3[x] > クエリ:iv=[x] > クラス:OpenSSL::BN[x]

別のキーワード

  1. _builtin to_h
  2. env to_h
  3. hash to_h
  4. array to_h
  5. struct to_h

ライブラリ

検索結果

OpenSSL::BN#prime_fasttest?(checks=nil, vtrivdiv=true) -> bool (18904.0)

自身が素数であるなら true を返します。

...ある
OpenSSL::BN
.new("181").prime_fasttest?(nil, true) # => false
OpenSSL::BN
.new("181").prime_fasttest?(nil, false) # => true
//}

@param checks Miller-Robin法の繰り返しの回数
@param vtrivdiv 真なら小さな素数で割ることでの素数判定を試みます
@raise OpenSSL::BNError...
...判定時にエラーが発生
@see OpenSSL::BN#prime?...