<?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[Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

int main(){

char c;

do{

int zahl;
bool prim=true;   

cout&lt;&lt;&quot;Bitte positiven Startwert eingeben&quot;&lt;&lt;endl;
cin&gt;&gt;zahl;  

if(zahl&lt;2){
          prim = false;}
                       else {
                            for(int i=2;i*i&lt;=zahl;++i){
                                                      if(!zahl%i){
                                                      prim = false; 
                                                      break;}
                          }                                                                        }

if (prim) cout &lt;&lt; &quot;primzahl&quot;;
else cout &lt;&lt; &quot;keine primzahl&quot;;     

cout&lt;&lt;&quot;Nochmal==='j'/Abbruch==='n'&quot;&lt;&lt;endl;
cin&gt;&gt;c;
 }while(c=='j');
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/290289/überprüfung-ob-zahl-cin-primzahl-ist-oder-nicht-erledigt</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 16:48:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/290289.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Jul 2011 14:15:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 10:33:04 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

int main(){

char c;

do{

int zahl;
bool prim=true;   

cout&lt;&lt;&quot;Bitte positiven Startwert eingeben&quot;&lt;&lt;endl;
cin&gt;&gt;zahl;  

if(zahl&lt;2){
          prim = false;}
                       else {
                            for(int i=2;i*i&lt;=zahl;++i){
                                                      if(!zahl%i){
                                                      prim = false; 
                                                      break;}
                          }                                                                        }

if (prim) cout &lt;&lt; &quot;primzahl&quot;;
else cout &lt;&lt; &quot;keine primzahl&quot;;     

cout&lt;&lt;&quot;Nochmal==='j'/Abbruch==='n'&quot;&lt;&lt;endl;
cin&gt;&gt;c;
 }while(c=='j');
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2096821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096821</guid><dc:creator><![CDATA[markuswenczel]]></dc:creator><pubDate>Sun, 24 Jul 2011 10:33:04 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 14:22:58 GMT]]></title><description><![CDATA[<p>Alle Wege führen zu einer von Dir eigens dafür geschriebenen Funktion<br />
bool istPrimzahl(int kandidat)<br />
Sobald Du das geschafft hast, können Wir Dein Programm supi hübsch znd elegant machen. Aber dann kannste es auch selber.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2096825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096825</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sat, 23 Jul 2011 14:22:58 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 14:40:56 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>Alle Wege führen zu einer von Dir eigens dafür geschriebenen Funktion<br />
bool istPrimzahl(int kandidat)<br />
Sobald Du das geschafft hast, können Wir Dein Programm supi hübsch znd elegant machen. Aber dann kannste es auch selber.</p>
</blockquote>
<p>Darf keine Funktionen verwenden aber danke für den Hinweis<br />
lg<br />
markus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2096834</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096834</guid><dc:creator><![CDATA[markuswenczel]]></dc:creator><pubDate>Sat, 23 Jul 2011 14:40:56 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 14:45:32 GMT]]></title><description><![CDATA[<p>Wer sagt das? Und was ist der Sinn dahinter?</p>
<p>PS: Selbst wenn du im fertigen Programm keine Funktion verwenden darfst/willst, solltest du den Primzahltest trotzdem erstmal für sich alleine auf die Beine stellen. Wenn du dann unbedingt die Vorgaben deines Profesors erfüllen mußt, kopierst du ihn halt direkt ins Hauptprogramm.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2096836</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096836</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Sat, 23 Jul 2011 14:45:32 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 16:00:56 GMT]]></title><description><![CDATA[<p>markuswenczel schrieb:</p>
<blockquote>
<p>Es funktioniert</p>
</blockquote>
<p>Glaub ich nicht, Deinem Programm zufolge ist 15 eine Primzahl ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2096863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096863</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Sat, 23 Jul 2011 16:00:56 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 17:24:25 GMT]]></title><description><![CDATA[<p>Wenn ich das richtig verstehe, prüft Dein Programm die eingebene Zahl lediglich auf Modulo 2, d.h., ob die Zahl gerade oder ungerade ist.</p>
<p>Es gibt aber auch viele ungerade Zahlen, die keine Primzahlen sind.</p>
<p>Eine %2-Prüfung ist eigentlich gar nicht notwendig, man kann z.B. die geraden Zahlen mit Ausnahme von 2 von vornherein ausschließen, in dem man mit einer Schleife beginnend mit 3 arbeitet, die dann immer um 2 hochzählt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2096891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096891</guid><dc:creator><![CDATA[redrew99]]></dc:creator><pubDate>Sat, 23 Jul 2011 17:24:25 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 17:40:33 GMT]]></title><description><![CDATA[<p>Noch ein Vorschlag, es besser zu machen:</p>
<pre><code class="language-cpp">bool is_prime(unsigned n)
{
        if(n == 2 || n == 3)
                return true; 

        if(n &lt; 2 || n % 2 == 0 || n % 3 == 0)
                return false;

        for(unsigned i = 5, delta = 2; i * i &lt; n; i += delta, delta = 6 - delta)
                if(n % i == 0)
                        return false;

        return true;
}
</code></pre>
<p>Hier wird auf i abwechselnd 2 und 4 addiert, wodurch die Schleife noch weniger durchlaufen wird.</p>
<p>Hier mit Ausgabe: <a href="http://ideone.com/oQheK" rel="nofollow">http://ideone.com/oQheK</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2096901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096901</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sat, 23 Jul 2011 17:40:33 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 19:08:35 GMT]]></title><description><![CDATA[<p>danke habe das mal versucht funktioniert aber nicht<br />
siehe meinen Code hmmmmmmmm</p>
<p>314159265358979 schrieb:</p>
<blockquote>
<p>Noch ein Vorschlag, es besser zu machen:</p>
<pre><code class="language-cpp">bool is_prime(unsigned n)
{
        if(n == 2 || n == 3)
                return true; 
 
        if(n &lt; 2 || n % 2 == 0 || n % 3 == 0)
                return false;
 
        for(unsigned i = 5, delta = 2; i * i &lt; n; i += delta, delta = 6 - delta)
                if(n % i == 0)
                        return false;
 
        return true;
}
</code></pre>
<p>Hier wird auf i abwechselnd 2 und 4 addiert, wodurch die Schleife noch weniger durchlaufen wird.</p>
<p>Hier mit Ausgabe: <a href="http://ideone.com/oQheK" rel="nofollow">http://ideone.com/oQheK</a></p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2096939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096939</guid><dc:creator><![CDATA[markuswenczel]]></dc:creator><pubDate>Sat, 23 Jul 2011 19:08:35 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 19:26:26 GMT]]></title><description><![CDATA[<p>Natürlich funktioniert das.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2096945</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2096945</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sat, 23 Jul 2011 19:26:26 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 22:22:33 GMT]]></title><description><![CDATA[<p>markuswenczel schrieb:</p>
<blockquote>
<p>Funzt nicht warum wohl hmmmmmmmmm</p>
<pre><code class="language-cpp">for(unsigned i = 5, h = 2; i * i &lt; zahl; i += h, h = 6 - h) {
                if(zahl % i == 0) 
                cout&lt;&lt;&quot;Ist Keine Primzahl&quot;&lt;&lt;endl;
                        else {
                        cout&lt;&lt;&quot;Ist eine Primzahl&quot;&lt;&lt;endl;}
</code></pre>
</blockquote>
<p>Wenn ich die Schleife richtig verstehe, soll sie solange laufen, wie i*i kleiner als die eingebene Zahl ist.</p>
<p>Im ersten Durchlauf ist i*i immer 25, bei jeder eingegebenen Zahl&lt;25 wird die Schleife sofort verlassen. (Ausnahme nur wenn %2,3 == 0 ist.)</p>
<p>i wird nach jedem Schleifendurchlauf um 4 erhöht, also 5,9,13,17,21,25,<br />
die Modulorechnungen dazwischen finden aber nicht statt, was sie aber zumindest teilweise müßten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2097018</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097018</guid><dc:creator><![CDATA[redrew99]]></dc:creator><pubDate>Sat, 23 Jul 2011 22:22:33 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sat, 23 Jul 2011 22:28:32 GMT]]></title><description><![CDATA[<p>i wird immer abwechselnd um 2 und 4 erhöht. Daher ergeben sich für i die Werte:<br />
5, 7, 11, 13, 17, 19, 23, 25, 29, ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2097024</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097024</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sat, 23 Jul 2011 22:28:32 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 00:26:48 GMT]]></title><description><![CDATA[<p>314159265358979 schrieb:</p>
<blockquote>
<p>i wird immer abwechselnd um 2 und 4 erhöht. Daher ergeben sich für i die Werte:<br />
5, 7, 11, 13, 17, 19, 23, 25, 29, ...</p>
</blockquote>
<p>Stimmt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2097040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097040</guid><dc:creator><![CDATA[redrew99]]></dc:creator><pubDate>Sun, 24 Jul 2011 00:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 07:46:34 GMT]]></title><description><![CDATA[<p>314159265358979 schrieb:</p>
<blockquote>
<p>Noch ein Vorschlag, es besser zu machen:</p>
<pre><code class="language-cpp">bool is_prime(unsigned n)
{
        if(n == 2 || n == 3)
                return true; 
 
        if(n &lt; 2 || n % 2 == 0 || n % 3 == 0)
                return false;
 
        for(unsigned i = 5, delta = 2; i * i &lt; n; i += delta, delta = 6 - delta)
                if(n % i == 0)
                        return false;
 
        return true;
}
</code></pre>
<p>Hier wird auf i abwechselnd 2 und 4 addiert, wodurch die Schleife noch weniger durchlaufen wird.</p>
<p>Hier mit Ausgabe: <a href="http://ideone.com/oQheK" rel="nofollow">http://ideone.com/oQheK</a></p>
</blockquote>
<p>Hmm, die Ausgabe geht nur bis 24. Absicht? Wolltest Du da etwas vertuschen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2097046</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097046</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 24 Jul 2011 07:46:34 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 07:57:08 GMT]]></title><description><![CDATA[<p>Das is_prime() scheint Quadratzahlen aber sehr zu mögen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2097049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097049</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sun, 24 Jul 2011 07:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 09:06:04 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>314159265358979 schrieb:</p>
<blockquote>
<p>Noch ein Vorschlag, es besser zu machen:</p>
<pre><code class="language-cpp">bool is_prime(unsigned n)
{
        if(n == 2 || n == 3)
                return true; 
 
        if(n &lt; 2 || n % 2 == 0 || n % 3 == 0)
                return false;
 
        for(unsigned i = 5, delta = 2; i * i &lt; n; i += delta, delta = 6 - delta)
                if(n % i == 0)
                        return false;
 
        return true;
}
</code></pre>
<p>Hier wird auf i abwechselnd 2 und 4 addiert, wodurch die Schleife noch weniger durchlaufen wird.</p>
<p>Hier mit Ausgabe: <a href="http://ideone.com/oQheK" rel="nofollow">http://ideone.com/oQheK</a></p>
</blockquote>
<p>Hmm, die Ausgabe geht nur bis 24. Absicht? Wolltest Du da etwas vertuschen?</p>
</blockquote>
<p>Nein. 25 ist eine schöne Zahl für eine Schleifenbedingung. Ich hätte mindestens bis 100 gehen sollen.</p>
<p>cooky451 schrieb:</p>
<blockquote>
<p>Das is_prime() scheint Quadratzahlen aber sehr zu mögen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
</blockquote>
<p>Sollte natürlich &lt;= als Schleifenbedingung hin <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
<p>Hier nochmal korrigiert und alle Primzahlen unter 100: <a href="http://ideone.com/YotE7" rel="nofollow">http://ideone.com/YotE7</a> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2097052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097052</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Sun, 24 Jul 2011 09:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 08:56:33 GMT]]></title><description><![CDATA[<p>redrew99 schrieb:</p>
<blockquote>
<p>markuswenczel schrieb:</p>
<blockquote>
<p>Funzt nicht warum wohl hmmmmmmmmm</p>
<pre><code class="language-cpp">for(unsigned i = 5, h = 2; i * i &lt; zahl; i += h, h = 6 - h) {
                if(zahl % i == 0) 
                cout&lt;&lt;&quot;Ist Keine Primzahl&quot;&lt;&lt;endl;
                        else {
                        cout&lt;&lt;&quot;Ist eine Primzahl&quot;&lt;&lt;endl;}
</code></pre>
</blockquote>
<p>Wenn ich die Schleife richtig verstehe, soll sie solange laufen, wie i*i kleiner als die eingebene Zahl ist.</p>
<p>Im ersten Durchlauf ist i*i immer 25, bei jeder eingegebenen Zahl&lt;25 wird die Schleife sofort verlassen. (Ausnahme nur wenn %2,3 == 0 ist.)</p>
<p>i wird nach jedem Schleifendurchlauf um 4 erhöht, also 5,9,13,17,21,25,<br />
die Modulorechnungen dazwischen finden aber nicht statt, was sie aber zumindest teilweise müßten.</p>
</blockquote>
<p>Stimmt danke für den Hinweis<br />
Ich könnte mit Modulo überprüfen ob die Zahl durch 2.3.4 usw teilbar ist<br />
aber nur wenn sei durch sich selbst und ein teilbar ist ist das Ergebnis true<br />
klingt so einfach aber wie baue ich das in eine Schleife ein<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2097053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097053</guid><dc:creator><![CDATA[markuswenczel]]></dc:creator><pubDate>Sun, 24 Jul 2011 08:56:33 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 09:07:44 GMT]]></title><description><![CDATA[<p>markuswenczel schrieb:</p>
<blockquote>
<p>klingt so einfach aber wie baue ich das in eine Schleife ein</p>
</blockquote>
<p>Na PI's version ist schon etwas tricky, hier mal eine einfachere Überlegung:</p>
<pre><code class="language-cpp">bool is_prime(unsigned val)
{
  if (val &gt; 1) // 1 ist keine Primzahl!
  {
    for (unsigned i = 2; i &lt; val; ++i) // von 2 bis (Wert-1)
      if (val % i == 0) // Muss immer ein Rest bleiben
        return false;
    return true; // Dann ist es eine Primzahl
  }
  return false;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2097055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097055</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sun, 24 Jul 2011 09:07:44 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 09:36:10 GMT]]></title><description><![CDATA[<p>cooky451 schrieb:</p>
<blockquote>
<p>markuswenczel schrieb:</p>
<blockquote>
<p>klingt so einfach aber wie baue ich das in eine Schleife ein</p>
</blockquote>
<p>Na PI's version ist schon etwas tricky, hier mal eine einfachere Überlegung:</p>
<pre><code class="language-cpp">bool is_prime(unsigned val)
{
  if (val &gt; 1) // 1 ist keine Primzahl!
  {
    for (unsigned i = 2; i &lt; val; ++i) // von 2 bis (Wert-1)
      if (val % i == 0) // Muss immer ein Rest bleiben
        return false;
    return true; // Dann ist es eine Primzahl
  }
  return false;
}
</code></pre>
</blockquote>
<p>Mein Versuch scheitert bitte warum</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main(){

char c;

do{

int s,zahl,h;

cout&lt;&lt;&quot;Bitte positiven Startwert eingeben&quot;&lt;&lt;endl;
cin&gt;&gt;zahl;  

        if(zahl&gt;1){ 
              for(int i=2;i&lt;zahl;++i)
                if(zahl%i==0){
                cout&lt;&lt;&quot;Ist Keine Primzahl&quot;&lt;&lt;endl;}
                }

              cout&lt;&lt;&quot;Ist Eine Primzahl&quot;&lt;&lt;endl;

cout&lt;&lt;&quot;Nochmal==='j'/Abbruch==='n'&quot;&lt;&lt;endl;
cin&gt;&gt;c;
   }while(c=='j');
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2097061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097061</guid><dc:creator><![CDATA[markuswenczel]]></dc:creator><pubDate>Sun, 24 Jul 2011 09:36:10 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 09:39:59 GMT]]></title><description><![CDATA[<p>Der Unterschied zu Cookys Version ist, daß er bei einem &quot;Treffer&quot; komplett aus der Funktion herausspringt. Wenn du es wirklich direkt in die Hauptfunktion einbauen willst, mußt du dir auf andere Weise merken, ob du einen Teiler gefunden hast.</p>
<p>PS: Tu uns einen Gefallen und gewöhn dir einen ordentlichen Einrückungsstil an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2097062</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097062</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Sun, 24 Jul 2011 09:39:59 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüfung ob Zahl cin Primzahl ist oder nicht Erledigt on Sun, 24 Jul 2011 10:49:11 GMT]]></title><description><![CDATA[<p>Die Definition von s und h dürfte überflüssig sein, die Variablen werden nicht benötigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2097084</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2097084</guid><dc:creator><![CDATA[redrew99]]></dc:creator><pubDate>Sun, 24 Jul 2011 10:49:11 GMT</pubDate></item></channel></rss>