Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
primes
素数関数
呼び出し手順
[y]=primes(x)
パラメータ
- x
実数のスカラー
- y
ベクトル
説明
実数 xを指定すると, primes(x)
は,1 と xの間の全ての素数を含む
ベクトルyを返します.
x<2の場合,
primes(x) は空の行列を返します.
例
x=35 y=primes(x)
参照
| << perms | Discrete mathematics | rat >> |