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 30, 2025 14:17andrei445andrei445Score: 5,863,890Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2025 14:175,816,2665,143,201,3554,011,895,0001,106,419,0002,281,472
2Jan 30, 2025 14:175,863,8905,192,716,2504,034,611,0001,125,612,0002,281,472
3Jan 30, 2025 14:175,938,4815,259,485,6474,063,561,0001,162,302,0002,281,472