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 22, 2026 08:34Dominique GarmierDominique GarmierScore: 139,681Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 22, 2026 08:34139,676148,466,670117,919,0004,996,0002,543,616
2Mar 22, 2026 08:34139,681152,406,378115,924,0006,995,0002,543,616
3Mar 22, 2026 08:34139,778145,409,346116,005,0007,000,0002,318,336