<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Programm um Primzahl zuberechen]]></title><description><![CDATA[<p>Hallo ich suche ein Programm bzw. ansätze was aus einer vorgeben Zahl die nächst höhere Primzahl berechnet. Ich benötige dies für ein Programm das mit der nächsten Primzahl dann weiter rechenet. Kann mir wer helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/145906/programm-um-primzahl-zuberechen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 13:16:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/145906.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 May 2006 12:21:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programm um Primzahl zuberechen on Tue, 02 May 2006 12:21:18 GMT]]></title><description><![CDATA[<p>Hallo ich suche ein Programm bzw. ansätze was aus einer vorgeben Zahl die nächst höhere Primzahl berechnet. Ich benötige dies für ein Programm das mit der nächsten Primzahl dann weiter rechenet. Kann mir wer helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1049500</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049500</guid><dc:creator><![CDATA[dastomtom]]></dc:creator><pubDate>Tue, 02 May 2006 12:21:18 GMT</pubDate></item><item><title><![CDATA[Reply to Programm um Primzahl zuberechen on Tue, 02 May 2006 12:36:49 GMT]]></title><description><![CDATA[<p>na der ansatz wäre doch sicher die zugrundeliegende mathematik!</p>
<p>und programme, wo die primzahl berechnet wird, gab es hier im forum schon oft</p>
<p>ALSO</p>
<p>Forumsuche benutzen oder mal googlen!</p>
<p>wenn du bei einem direkten programmproblem nicht weiterkommst, quellcode posten, und dann helfen wir gerne!</p>
<p>ganze programme schreiben, muss ja nich sein!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1049515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049515</guid><dc:creator><![CDATA[ser1al]]></dc:creator><pubDate>Tue, 02 May 2006 12:36:49 GMT</pubDate></item><item><title><![CDATA[Reply to Programm um Primzahl zuberechen on Tue, 02 May 2006 12:38:34 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">do
  zahl+=2;
while(!is_prime(zahl));
</code></pre>
<p>Reicht dir das als Ansatz?</p>
<p>Anmerkung 1: die Schleife funktioniert nur, wenn &quot;zahl&quot; vorher ungerade ist<br />
Anmerkung 2: is_prime() mußt du dir selber schreiben - google am besten mal nach &quot;Primzahl&quot;, da findest du sicher ein paar brauchbare Ansätze.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1049520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049520</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 02 May 2006 12:38:34 GMT</pubDate></item></channel></rss>