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 29, 2026 23:31olliecrowolliecrowScore: 11,915Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 23:3211,70028,501,7639,267,0001,029,0002,363,392
2Apr 29, 2026 23:3211,76826,163,6409,321,0001,035,0002,375,680
3Apr 29, 2026 23:3211,80625,579,2159,351,0001,039,0002,371,584
4Apr 29, 2026 23:3211,88726,985,0359,415,0001,046,0002,363,392
5Apr 29, 2026 23:3211,91530,143,1109,438,0001,048,0002,371,584
6Apr 29, 2026 23:3211,93126,500,1879,450,0001,050,0002,371,584
7Apr 29, 2026 23:3211,94531,272,0359,461,0001,051,0002,371,584
8Apr 29, 2026 23:3211,99425,805,5619,500,0001,055,0002,371,584
9Apr 29, 2026 23:3212,06931,804,2999,559,0001,062,0002,371,584