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 19:46Joad 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 19:4400000Error: expected "50887408773020 ", got "50887875531201 "stderr
2Dec 6, 2024 19:4500000Error: expected "50898735125726 ", got "50898735116713 "stderr
3Dec 6, 2024 19:4600000Error: expected "51255808230299 ", got "51255808228746 "stderr
4Dec 6, 2024 19:4621,94537,447,54619,312,00002,527,232
5Dec 6, 2024 19:4622,18436,990,60419,522,00002,527,232
6Dec 6, 2024 19:4622,63049,472,26419,914,00002,527,232