![]() |
Fun Code of the Week #6: Primality Checking
I decided to give KhanAcademy a spin, and watched this set of videos: Level 1: Primality Test And that let to me writing this code: function IsPrime(const x: integer): Boolean; var i: integer; begin i := 2; repeat if X mod i = 0 then begin Result := False; ...http://feeds.feedburner.com/~r/delph...~4/ebTy3VQPCew
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:24 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz