1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2008 - INRIA
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="primes" xml:lang="ja">
15 <refname>primes</refname>
16 <refpurpose>素数関数</refpurpose>
20 <synopsis>[y]=primes(x)</synopsis>
42 実数 <literal>x</literal>を指定すると, <literal>primes(x)</literal>
43 は,1 と <literal>x</literal>の間の全ての素数を含む
44 ベクトル<literal>y</literal>を返します.
45 <literal>x<2 </literal>の場合,
46 <literal>primes(x)</literal> は空の行列を返します.
51 <programlisting role="example"><![CDATA[
56 <refsection role="see also">
58 <simplelist type="inline">
60 <link linkend="factor">factor</link>