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 14, 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
1Dec 14, 2024 00:3300000Error: expected "51963664723374 ", got "176560889279714 "stderr
2Dec 14, 2024 00:3300000Error: expected "51119030794646 ", got "174916713936194 "stderr
3Dec 14, 2024 00:3500000Error: expected "51406415370342 ", got "175725585531764 "stderr
4Dec 14, 2024 00:3500000Error: expected "51125618389949 ", got "176528748348169 "stderr
5Dec 14, 2024 00:3700000Error: expected "50800421673968 ", got "174959603340616 "stderr