15 search resultsShowing 1~15 results

Stocked

Scalaで素数判定 試し割り法

試し割り法 自然数nが$2 \leq k \leq \sqrt n$となる全ての自然数kで割り切れない場合は素数、一つでも割り切れるkが存在する場合素数でないとする判定方法です。 Scalaのコ...

0
0
Comment0

15 search resultsShowing 1~15 results

Qiita is a knowledge sharing service for engineers.

  1. You can follow users and tags
  2. You can stock useful information
  3. You can make edit suggestions for articles
Functions that can be used after logging in