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 listJul 31, 2022 14:28Robert BurkeRobert BurkeError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 14:2800000Error: expected "50983747187048 ", got "50983747177569 "stderr
2Jul 31, 2022 14:2800000Error: expected "50892419507065 ", got "50892419499164 "stderr
3Jul 31, 2022 14:2937,57491,907,21633,064,72102,293,760
4Jul 31, 2022 14:2937,586102,652,23933,075,67902,281,472
5Jul 31, 2022 14:2937,59598,263,41433,083,80702,293,760