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 listJan 18, 2026 05:38Josu San MartinJosu San MartinScore: 14,330Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 05:3814,30032,412,6919,438,0003,146,0002,506,752
2Jan 18, 2026 05:3814,33034,270,53711,560,0001,050,0002,379,776
3Jan 18, 2026 05:3814,36136,637,98212,638,00002,461,696