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 listApr 23, 2026 01:53olliecrowolliecrowScore: 12,890Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 01:5412,64529,053,3318,093,0003,035,0002,564,096
2Apr 23, 2026 01:5412,74427,564,73910,196,0001,019,0002,306,048
3Apr 23, 2026 01:5412,77729,252,75710,222,0001,022,0002,560,000
4Apr 23, 2026 01:5412,79427,530,86010,236,0001,023,0002,560,000
5Apr 23, 2026 01:5412,89031,064,91310,313,0001,031,0002,367,488
6Apr 23, 2026 01:5412,94431,834,20910,356,0001,035,0002,572,288
7Apr 23, 2026 01:5412,95432,418,37910,364,0001,036,0002,568,192
8Apr 23, 2026 01:5412,96330,209,24210,371,0001,037,0002,301,952
9Apr 23, 2026 01:5412,96931,016,77210,376,0001,037,0002,314,240