<div id="code_container_62021021" class="code_container">
<div id="code_headcontent_62021021" class="code_headcontent">
<div id="code_header_62021021" class="code_header">
<p>AutoIt-Code:</p>
</div>
<div id="code_content_62021021" class="code_content">
<div class="autoit" style="font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; font-size: 90%; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; color: rgb(0, 0, 0);">
<pre style="margin: 0pt; padding: 0pt; background: transparent none repeat scroll 0% 0%; font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.2em; font-size-adjust: none; font-stretch: normal; -x-system-font: none; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; vertical-align: top;">
<span style="font-style: italic; color: rgb(0, 153, 51);">; #INDEX# =======================================================================================================================</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Titel..........: MathEx</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; AutoIt Version.: 3.3.0.0 ++</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Sprache........: Deutsch</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Beschreibung...: Diese UDF ergänzt um einige mathematische Funktionen.</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Version........: 2.0.1.0</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; ===============================================================================================================================</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; #FUNCTION# ====================================================================================================================</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Name...........: _MathEx_IsPrime</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Beschreibung...: Prüft, ob eine Zahl eine Primzahl ist.</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Syntax.........: _MathEx_IsPrime($number[, $one_prime])</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Parameter......: $number - Die Nummer, die geprüft werden soll</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; $one_prime - Auf 1 setzen, wenn 1 eine Primzahl sein soll.</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Rückgabe.......: Erfolg - Gibt 1 zurück, wenn die Zahl eine Primzahl ist.</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Fehler - Gibt 0 zurück und setzt @error</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; |0 - $number ist keine Primzahl</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; |1 - $number ist keine Zahl</span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; Author ........: Progandy <Progandy at autoit dot de>, Matthias Gianfelice <matthias at gianfelice dot de></span>
<span style="font-style: italic; color: rgb(0, 153, 51);">; ===============================================================================================================================</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
_MathEx_IsPrime
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$number</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">,</span>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$one_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
0
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$integer_number_mathex_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
<a href="http://www.autoitscript.com/autoit3/docs/functions/Number.htm">
</a>
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$number</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/functions/IsInt.htm">
</a>
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$integer_number_mathex_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
1
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$integer_number_mathex_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">></span>
0
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$integer_number_mathex_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
1
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/functions/SetError.htm">
</a>
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
0
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
0
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$integer_number_mathex_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
2
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
1
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
_MathEx_IsDivisible
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$integer_number_mathex_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">,</span>
2
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$i</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
3
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/functions/Sqrt.htm">
</a>
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$integer_number_mathex_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
2
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
_MathEx_IsDivisible
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$integer_number_mathex_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">,</span>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$i</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/functions/SetError.htm">
</a>
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
0
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
0
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
1
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$one_prime</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/functions/IsInt.htm">
</a>
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
<span style="font-weight: bold; color: rgb(170, 0, 0);">$integer_number_mathex_prime</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<span style="color: rgb(255, 0, 0); font-weight: bold;">=</span>
1
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
1
<a href="http://www.autoitscript.com/autoit3/docs/functions/SetError.htm">
</a>
<span style="color: rgb(255, 0, 0); font-weight: bold;">(</span>
1
<span style="color: rgb(255, 0, 0); font-weight: bold;">)</span>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="color: rgb(255, 0, 0); font-weight: bold;">-</span>
1
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<a href="http://www.autoitscript.com/autoit3/docs/keywords.htm">
</a>
<span style="font-style: italic; color: rgb(0, 153, 51);">;==>_MathEx_IsPrime</span>
</pre>
</div>
</div>
</div>
<div id="code_actions" class="code_actions_62021021">
</div>
</div>