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 listJun 23, 2026 17:08anboto1anboto1Score: 44,576Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 17:1044,44748,387,92037,847,0001,267,0002,113,536
2Jun 23, 2026 17:1044,52248,339,78737,928,0001,252,0002,113,536
3Jun 23, 2026 17:1044,56148,463,52637,943,0001,271,0002,113,536
4Jun 23, 2026 17:1044,57348,488,74137,956,0001,269,0002,113,536
5Jun 23, 2026 17:1044,57648,547,31937,961,0001,266,0002,113,536
6Jun 23, 2026 17:1044,58948,504,92037,958,0001,281,0002,113,536
7Jun 23, 2026 17:1044,60048,211,97037,956,0001,292,0002,113,536
8Jun 23, 2026 17:1044,64648,618,03138,011,0001,278,0002,113,536
9Jun 23, 2026 17:1044,65248,165,03538,041,0001,253,0002,113,536