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 23:46olliecrowolliecrowScore: 13,631Success
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 23:4713,43527,549,3549,853,0001,970,0002,330,624
2Apr 23, 2026 23:4713,44029,061,68910,753,0001,075,0002,326,528
3Apr 23, 2026 23:4713,46127,905,2729,872,0001,974,0002,342,912
4Apr 23, 2026 23:4713,50726,421,7409,906,0001,981,0002,347,008
5Apr 23, 2026 23:4713,63131,743,45610,997,000999,0002,338,816
6Apr 23, 2026 23:4713,76227,870,62510,093,0002,018,0002,330,624
7Apr 23, 2026 23:4714,35026,963,67311,576,0001,052,0002,318,336
8Apr 23, 2026 23:4714,38628,926,23511,605,0001,055,0002,338,816
9Apr 23, 2026 23:4714,83531,268,05411,047,0002,008,0002,351,104