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 15:46olliecrowolliecrowScore: 14,054Success
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 15:4713,96730,955,17811,267,0001,024,0002,523,136
2Apr 29, 2026 15:4713,97625,946,18912,299,00002,363,392
3Apr 29, 2026 15:4713,99527,825,62211,290,0001,026,0002,523,136
4Apr 29, 2026 15:4714,03533,645,98911,322,0001,029,0002,523,136
5Apr 29, 2026 15:4714,05430,630,10411,338,0001,030,0002,359,296
6Apr 29, 2026 15:4714,09627,869,61311,372,0001,033,0002,519,040
7Apr 29, 2026 15:4714,14825,181,18412,451,00002,531,328
8Apr 29, 2026 15:4714,17226,158,20611,433,0001,039,0002,314,240
9Apr 29, 2026 15:4714,29627,302,81911,533,0001,048,0002,523,136