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 8, 2026 05:17olliecrowolliecrowScore: 11,955Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 8, 2026 05:1711,76927,334,65410,357,00002,265,088
2Apr 8, 2026 05:1711,81334,344,12810,395,00002,322,432
3Apr 8, 2026 05:1711,95025,506,02310,516,00002,519,040
4Apr 8, 2026 05:1711,95223,728,15410,518,00002,523,136
5Apr 8, 2026 05:1711,95527,522,16410,520,00002,527,232
6Apr 8, 2026 05:1711,95824,351,28910,523,00002,523,136
7Apr 8, 2026 05:1711,96727,844,57710,531,00002,519,040
8Apr 8, 2026 05:1711,96931,870,03010,533,00002,523,136
9Apr 8, 2026 05:1711,98028,499,84910,542,00002,428,928