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 listMar 20, 2026 17:35Yuriy LyfenkoYuriy LyfenkoScore: 13,569Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 17:3513,56530,266,63510,943,000994,0002,326,528
2Mar 20, 2026 17:3513,56926,197,3228,956,0002,985,0002,318,336
3Mar 20, 2026 17:3513,64326,777,18410,005,0002,001,0002,379,776