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 listJan 1, 2025 18:16zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2025 18:1500000Error: expected "50930265855003 ", got "50932253926804 "stderr
2Jan 1, 2025 18:163,76824,532,2522,211,0001,105,0002,297,856
3Jan 1, 2025 18:163,79823,057,2342,228,0001,114,0002,461,696
4Jan 1, 2025 18:163,90817,993,2082,293,0001,146,0002,461,696