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 13, 2026 15:38Dominique GarmierDominique GarmierScore: 63,873Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2026 15:3863,75279,104,93855,101,0001,001,0002,289,664
2Mar 13, 2026 15:3863,78481,416,43154,126,0002,004,0002,289,664
3Mar 13, 2026 15:3863,80284,356,32154,141,0002,005,0002,273,280
4Mar 13, 2026 15:3863,81880,386,20154,155,0002,005,0002,289,664
5Mar 13, 2026 15:3863,87380,745,28954,201,0002,007,0002,281,472
6Mar 13, 2026 15:3864,01678,939,57855,329,0001,005,0002,281,472
7Mar 13, 2026 15:3864,12281,150,50355,420,0001,007,0002,273,280
8Mar 13, 2026 15:3864,13484,702,44955,431,0001,007,0002,281,472
9Mar 13, 2026 15:3864,18979,138,44655,478,0001,008,0002,289,664