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 8, 2024 11:03Ivan BessonovIvan BessonovScore: 48,744Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 11:0343,68096,400,30338,438,13002,252,800
2May 8, 2024 11:1343,773100,648,94338,520,45002,265,088
3May 8, 2024 11:0343,820108,424,62838,561,48602,256,896
4May 8, 2024 11:0343,834130,942,93638,573,92102,256,896
5May 8, 2024 11:1343,853104,835,00438,590,66202,256,896
6May 8, 2024 11:1344,012106,945,49938,730,97502,252,800
7May 8, 2024 11:1348,54072,309,74742,715,00002,289,664
8May 8, 2024 11:0348,69369,594,87042,850,00002,273,280
9May 8, 2024 11:1348,71570,533,90340,876,0001,993,0002,289,664
10May 8, 2024 11:1348,72871,614,97940,887,0001,994,0002,289,664
11May 8, 2024 11:0348,72866,627,97541,884,000997,0002,273,280
12May 8, 2024 11:1348,73667,295,09441,891,000997,0002,273,280
13May 8, 2024 11:0348,74469,414,86941,898,000997,0002,289,664
14May 8, 2024 11:1348,76867,560,76140,920,0001,996,0002,289,664
15May 8, 2024 11:1348,77775,644,06841,926,000998,0002,273,280
16May 8, 2024 11:0348,78069,308,38841,928,000998,0002,289,664
17May 8, 2024 11:0348,80365,508,97040,950,0001,997,0002,392,064
18May 8, 2024 11:0348,81669,062,40840,960,0001,998,0002,289,664
19May 8, 2024 11:0348,83364,601,00440,975,0001,998,0002,289,664
20May 8, 2024 11:0348,86068,038,51140,998,0001,999,0002,289,664
21May 8, 2024 11:1348,86570,624,97441,001,0002,000,0002,289,664
22May 8, 2024 11:1348,88270,307,24841,016,0002,000,0002,277,376
23May 8, 2024 11:1348,94069,211,58442,066,0001,001,0002,289,664
24May 8, 2024 11:0348,94367,190,14841,067,0002,003,0002,273,280