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 6, 2024 02:02Joad 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
1Dec 6, 2024 02:0200000Error: expected "50839737216661 ", got "50840154996570 "stderr
2Dec 6, 2024 02:0200000Error: expected "51370008934152 ", got "51370618295719 "stderr
3Dec 6, 2024 02:0300000Error: expected "50966847672902 ", got "50968171341819 "stderr
4Dec 6, 2024 02:0300000Error: expected "51854428920160 ", got "51856216855041 "stderr
5Dec 6, 2024 02:0300000Error: expected "51591269527372 ", got "51591778830245 "stderr