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 listNov 28, 2024 00:33Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 28, 2024 00:3100000Error: expected "51004134424632 ", got "51005980596413 "stderr
2Nov 28, 2024 00:3100000Error: expected "50851037856182 ", got "50851491222211 "stderr
3Nov 28, 2024 00:3100000Error: expected "50855394364077 ", got "50856182410978 "stderr
4Nov 28, 2024 00:3100000Error: expected "51140069353564 ", got "51148024463110 "stderr
5Nov 28, 2024 00:3100000Error: expected "50969404654212 ", got "50970909486245 "stderr
6Nov 28, 2024 00:3200000Error: expected "51367866635915 ", got "51367981337256 "stderr
7Nov 28, 2024 00:3200000Error: expected "51637834851968 ", got "51640835233631 "stderr
8Nov 28, 2024 00:3200000Error: expected "51157770633492 ", got "51157798431953 "stderr
9Nov 28, 2024 00:3300000Error: expected "50651479289734 ", got "50651483803575 "stderr
10Nov 28, 2024 00:3300000Error: expected "51075148311990 ", got "51077651342051 "stderr
11Nov 28, 2024 00:3374,38497,916,27465,458,00002,285,568
12Nov 28, 2024 00:3374,61796,634,37165,663,00002,535,424
13Nov 28, 2024 00:3375,04089,395,70564,034,0002,001,0002,535,424