Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listMay 14, 2024 15:19Ivan BessonovIvan BessonovScore: 36,801Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 15:1931,44099,331,69827,666,81002,252,800
2May 14, 2024 15:1931,541102,679,87027,755,89402,260,992
3May 14, 2024 15:2131,543100,608,53127,757,90502,392,064
4May 14, 2024 15:2131,55395,175,46027,767,04602,252,800
5May 14, 2024 15:2431,57698,816,34927,786,86502,260,992
6May 14, 2024 15:2131,588117,176,14527,797,33602,248,704
7May 14, 2024 15:2431,602106,435,37427,810,06502,256,896
8May 14, 2024 15:2431,60593,264,92127,812,53302,256,896
9May 14, 2024 15:1931,678101,991,30127,876,46902,252,800
10May 14, 2024 15:2436,61957,856,23630,211,0002,014,0002,289,664
11May 14, 2024 15:1936,71857,086,78030,293,0002,019,0002,273,280
12May 14, 2024 15:2436,72856,024,27731,311,0001,010,0002,277,376
13May 14, 2024 15:2436,74855,488,12231,328,0001,010,0002,273,280
14May 14, 2024 15:2136,75754,443,27530,325,0002,021,0002,289,664
15May 14, 2024 15:1936,77859,193,76131,354,0001,011,0002,289,664
16May 14, 2024 15:1936,78555,015,70331,360,0001,011,0002,277,376
17May 14, 2024 15:2136,79055,275,12631,364,0001,011,0002,277,376
18May 14, 2024 15:2136,79152,369,57731,365,0001,011,0002,273,280
19May 14, 2024 15:2436,80153,979,51832,385,00002,281,472
20May 14, 2024 15:2136,81658,040,95132,398,00002,289,664
21May 14, 2024 15:2136,82758,513,34531,396,0001,012,0002,269,184
22May 14, 2024 15:2436,84855,493,60731,413,0001,013,0002,289,664
23May 14, 2024 15:2436,85060,642,22031,415,0001,013,0002,289,664
24May 14, 2024 15:1936,86154,483,04931,425,0001,013,0002,289,664
25May 14, 2024 15:2436,86656,059,60131,429,0001,013,0002,359,296
26May 14, 2024 15:2136,88355,462,89131,443,0001,014,0002,289,664
27May 14, 2024 15:1936,88453,782,99731,444,0001,014,0002,289,664
28May 14, 2024 15:1936,88452,565,60131,444,0001,014,0002,289,664
29May 14, 2024 15:2136,88862,326,30731,447,0001,014,0002,289,664
30May 14, 2024 15:2436,89454,455,97631,453,0001,014,0002,289,664
31May 14, 2024 15:1936,89455,187,68932,467,00002,289,664
32May 14, 2024 15:2436,96155,673,64231,510,0001,016,0002,289,664
33May 14, 2024 15:1936,99054,109,91832,551,00002,289,664
34May 14, 2024 15:1936,99453,399,49431,538,0001,017,0002,289,664
35May 14, 2024 15:2137,02558,147,36431,564,0001,018,0002,289,664
36May 14, 2024 15:2137,03057,706,15631,568,0001,018,0002,367,488