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 listMar 14, 2026 15:28Dominique GarmierDominique GarmierScore: 53,553Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 14, 2026 15:2853,40074,155,60945,993,000999,0002,273,280
2Mar 14, 2026 15:2853,41776,133,81645,007,0002,000,0002,289,664
3Mar 14, 2026 15:2853,47275,037,52445,053,0002,002,0002,289,664
4Mar 14, 2026 15:2853,54372,167,66845,113,0002,005,0002,289,664
5Mar 14, 2026 15:2853,55371,407,31445,122,0002,005,0002,289,664
6Mar 14, 2026 15:2853,66870,316,02846,224,0001,004,0002,269,184
7Mar 14, 2026 15:2853,75075,438,00345,288,0002,012,0002,289,664
8Mar 14, 2026 15:2853,78068,608,35545,313,0002,013,0002,289,664
9Mar 14, 2026 15:2853,78073,403,22245,313,0002,013,0002,289,664