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 listOct 3, 2023 00:59apuxbtapuxbtError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 00:5900000Error: expected "51530347145249 ", got "51530347142128 "stderr
2Oct 3, 2023 00:5930,63697,225,45926,959,24602,203,648
3Oct 3, 2023 00:5930,65172,943,49226,972,84002,207,744
4Oct 3, 2023 00:5930,66973,037,44626,988,66102,203,648