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 21, 2026 18:19Dominique GarmierDominique GarmierScore: 13,892Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 18:1913,89129,440,43510,187,0002,037,0002,359,296
2Mar 21, 2026 18:1913,89227,931,32710,188,0002,037,0002,285,568
3Mar 21, 2026 18:1913,91430,894,07211,224,0001,020,0002,285,568