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 25, 2026 01:04Dominique GarmierDominique GarmierScore: 13,942Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 25, 2026 01:0413,89828,324,05011,211,0001,019,0002,510,848
2Mar 25, 2026 01:0413,94227,744,38211,247,0001,022,0002,400,256
3Mar 25, 2026 01:0413,96431,844,45811,264,0001,024,0002,281,472