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 24, 2026 11:36olliecrowolliecrowScore: 13,401Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 11:3613,09727,391,03810,479,0001,047,0002,330,624
2Apr 24, 2026 11:3613,12027,474,33110,497,0001,049,0002,330,624
3Apr 24, 2026 11:3613,13228,543,60010,507,0001,050,0002,342,912
4Apr 24, 2026 11:3613,20927,762,55310,568,0001,056,0002,326,528
5Apr 24, 2026 11:3613,40125,758,8189,828,0001,965,0002,318,336
6Apr 24, 2026 11:3613,42026,919,16510,737,0001,073,0002,318,336
7Apr 24, 2026 11:3613,53628,457,3999,927,0001,985,0002,326,528
8Apr 24, 2026 11:3614,22728,864,58111,477,0001,043,0002,338,816
9Apr 24, 2026 11:3615,15930,436,46812,314,0001,026,0002,330,624