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 23, 2026 05:49Dominique GarmierDominique GarmierScore: 121,068Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 05:49120,733133,386,441105,243,0001,002,0002,265,088
2Mar 23, 2026 05:49121,068129,474,001106,540,00002,498,560
3Mar 23, 2026 05:49121,075127,891,128105,541,0001,005,0002,498,560