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 7, 2024 12:26Ivan BessonovIvan BessonovScore: 46,273Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 12:2546,03566,049,66440,511,00002,289,664
2May 7, 2024 12:2646,11462,363,46640,580,00002,273,280
3May 7, 2024 12:2546,11566,325,97039,567,0001,014,0002,273,280
4May 7, 2024 12:2546,12463,379,73039,575,0001,014,0002,289,664
5May 7, 2024 12:2546,16970,801,11040,629,00002,289,664
6May 7, 2024 12:2546,17870,320,45039,622,0001,015,0002,269,184
7May 7, 2024 12:2646,20272,195,88239,642,0001,016,0002,277,376
8May 7, 2024 12:2546,22069,108,17839,658,0001,016,0002,289,664
9May 7, 2024 12:2546,24565,787,01840,696,00002,289,664
10May 7, 2024 12:2546,25869,049,45940,707,00002,273,280
11May 7, 2024 12:2646,25870,564,54940,707,00002,289,664
12May 7, 2024 12:2646,25967,011,52039,691,0001,017,0002,269,184
13May 7, 2024 12:2646,27368,547,24240,720,00002,289,664
14May 7, 2024 12:2546,30369,797,95339,729,0001,018,0002,273,280
15May 7, 2024 12:2646,31369,704,79340,755,00002,289,664
16May 7, 2024 12:2646,45769,692,71238,888,0001,994,0002,527,232
17May 7, 2024 12:2646,47270,028,77938,901,0001,994,0002,269,184
18May 7, 2024 12:2646,47768,936,76738,905,0001,995,0002,289,664
19May 7, 2024 12:2646,50895,703,28640,926,81202,260,992
20May 7, 2024 12:2646,533121,527,87640,948,68002,252,800
21May 7, 2024 12:2546,560120,304,53440,972,38202,265,088
22May 7, 2024 12:2546,660109,506,47141,061,07702,248,704
23May 7, 2024 12:2546,668114,273,53741,068,14302,260,992
24May 7, 2024 12:2646,763101,008,98741,151,69602,265,088