Autor Beitrag
Gley
Hält's aus hier
Beiträge: 7



BeitragVerfasst: Do 23.11.06 09:40 
Hallo,
Weis jemand wie man Priemzahlen berechnet und ausgibt?
Wäre cool wenn jemand das weis.


MFG Gley

Moderiert von user profile iconChristian S.: Bitte um E-Mail-Antwort entfernt. Antworten gehören ins Forum
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 23.11.06 09:48 
Eine Zahl ist eine Primzahl, wenn sie nur durch sich selbst und eins geteilt wird. Das muss man dann einfach in einer Schleife überprüfen. Ob eine Zahl eine ander teilt, kann man mit MOD bestimmen.

Ansonsten: Mal im Forum suchen. Zu Primzahlen gibts ne Menge ;-)

_________________
We are, we were and will not be.
Gley Threadstarter
Hält's aus hier
Beiträge: 7



BeitragVerfasst: Do 23.11.06 09:57 
Ja gut werde ich mal schauen.
Danke

MFG Gley
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Do 23.11.06 19:38 
suche aber mit nach Primzahlen, der Rest tut ja weh :wink:

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
ssb-blume
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 375
Erhaltene Danke: 7

XP, W7, W8
Deutschland
BeitragVerfasst: Mo 27.11.06 11:13 
Titel: Primzahlen
Siehe auch mal unter "Sieb des Erastosthenes nach. Bei Wikipedia gibt es auch andere Alorithmen!