Results 1 to 25 of 35
Hybrid View
-
21st October 2006 18:41 #1
++, 100000000 ( ), 1000000 ( ) . , , , Celeron-D 2.6GHz 512MB DDR400, . - ?
, , - , , . , . , , .Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
21st October 2006 19:21 #2Registered User
Join Date: Apr:2006
Location: Sofia
Posts: 300
- . . !
.
-
21st October 2006 20:46 #3Registered User
Join Date: Oct:2002
Location:
Posts: 433
- . ...
-
22nd October 2006 11:56 #4Registered User
Join Date: Apr:2006
Location: Sofia
Posts: 300
, , -. . :
Originally Posted by [29]Fulcrum
http://en.wikipedia.org/wiki/Sieve_of_Atkin
-
22nd October 2006 15:45 #5
~25 , : Debug , Release - , . printf("da"); 30000 -. Microsoft...
.
tedych, , . , , ...
!Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
23rd October 2006 10:45 #6!
Originally Posted by 4eRNoBiL
, . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
21st October 2006 20:47 #7
, 10 - .
, .. 2,3,5,7,11 13, 100 000 000 ...
- , , . .
: , .Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
21st October 2006 23:23 #8
100 . 70 .
EDIT: , - ( sqrt() sqr() , ), 100 8 !!
, , , , -.. 8 . .Last edited by tedych; 22nd October 2006 at 00:25.
-
22nd October 2006 01:47 #9
-
22nd October 2006 10:49 #10
, .
Code:procedure TForm1.Button1Click(Sender: TObject); const limit = 100000000; var n, x, y: Longword; k, s, rsqrtl, sqrx, sqry : Int64; is_prime:array[0..limit] of boolean; begin label1.Caption:= 'Started...'; Application.ProcessMessages; for n := 5 to limit do is_prime[n] := false; rsqrtl := Round(sqrt(limit)); for x := 1 to rsqrtl do begin sqrx := sqr(x); for y := 1 to rsqrtl do begin sqry := sqr(y); n := 4 * sqrx + sqry; if (n <= limit) and ( (n mod 12 = 1) or ((n mod 12 = 5)) ) then is_prime[n] := not is_prime[n]; n := 3 * sqrx + sqry; if (n <= limit) and (n mod 12 = 7) then is_prime[n] := not is_prime[n]; n := 3 * sqrx - sqry; if (x > y) and (n <= limit) and (n mod 12 = 11) then is_prime[n] := not is_prime[n]; end; end; for n := 5 to rsqrtl do begin if is_prime[n] then begin s:= sqr(n); k:= s; while (k<=limit) do begin is_prime[k] := false; k:= k + s; end; end; end; for n := 5 to limit do begin // logika za izvejdane na chislata end; label1.Caption:= 'Stopped'; end;
-
23rd October 2006 12:04 #111 -> 100 000 000 ~ 100 ~ 12 -> ?
Originally Posted by 4eRNoBiL
, !
-
24th October 2006 01:00 #12, 12 - 100 - , div, mod xor, and, or, , 100 - , .. 8 - , , , '' - , 1 , 7 . .
Originally Posted by Pesho
, - , 0 1 , xor . , - -..
-
24th October 2006 01:05 #13
[bg]A za]o prosto ne polzwa[[/bg] std::vector<bool> ?
, !




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in