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 listDec 19, 2024 02:39zielajzielajScore: 4,784Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2024 13:144,62019,814,3103,050,0001,016,0002,535,424
2Dec 19, 2024 13:144,62320,069,6373,051,0001,017,0002,330,624
3Dec 19, 2024 13:144,62726,027,4953,054,0001,018,0002,535,424
4Dec 19, 2024 13:144,65918,039,4883,075,0001,025,0002,535,424
5Dec 19, 2024 13:144,66619,867,4792,053,0002,053,0002,494,464
6Dec 19, 2024 13:144,69722,738,0323,100,0001,033,0002,535,424
7Dec 19, 2024 02:374,73317,715,7012,499,0001,666,0002,269,184
8Dec 19, 2024 02:374,78419,180,2073,158,0001,052,0002,494,464
9Dec 19, 2024 13:144,78622,596,8853,159,0001,053,0002,498,560
10Dec 19, 2024 13:144,79325,751,0982,109,0002,109,0002,273,280
11Dec 19, 2024 13:144,82319,981,4812,122,0002,122,0002,498,560
12Dec 19, 2024 02:395,12721,395,1572,256,0002,256,0002,498,560
13Dec 19, 2024 02:375,16821,483,5053,411,0001,137,0002,498,560
14Dec 19, 2024 02:395,26928,817,1913,478,0001,159,0002,498,560
15Dec 19, 2024 02:395,69024,780,8605,007,00002,486,272