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 25, 2024 11:14Joad 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
1May 25, 2024 11:1400000Error: expected "50945399931314 ", got "50946504125835 "stderr
2May 25, 2024 11:1500000Error: expected "51516166398437 ", got "51517946047818 "stderr
3May 25, 2024 11:1750,604116,174,41744,531,93402,232,320
4May 25, 2024 11:1751,235107,924,50745,087,20102,232,320
5May 25, 2024 11:1751,363105,373,21645,199,77802,232,320