1 <?xml version="1.0" encoding="UTF-8"?>
4 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5 * Copyright (C) 2008 - INRIA
7 * Copyright (C) 2012 - 2016 - Scilab Enterprises
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
18 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
19 xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml"
20 xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
21 xmlns:scilab="http://www.scilab.org" xml:id="primes" xml:lang="ja">
25 <refname>primes</refname>
27 <refpurpose>素数関数</refpurpose>
35 <synopsis>y = primes(x)</synopsis>
79 実数 <literal>x</literal>を指定すると, <literal>primes(x)</literal>
81 は,1 と <literal>x</literal>の間の全ての素数を含む
83 ベクトル<literal>y</literal>を返します.
85 <literal>x<2 </literal> の場合,
87 <literal>primes(x)</literal> は空の行列を返します.
97 <programlisting role="example"><![CDATA[
103 2. 3. 5. 7. 11. 13. 17. 19. 23. 29. 31.
108 <refsection role="see also">
112 <simplelist type="inline">
116 <link linkend="factor">factor</link>