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 listFeb 6, 2026 05:15vahookvahookScore: 3,488Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 05:163,41018,390,5481,000,0002,001,0002,494,464
2Feb 6, 2026 05:153,42718,011,9141,005,0002,011,0002,498,560
3Feb 6, 2026 05:163,47520,479,4481,019,0002,039,0002,281,472
4Feb 6, 2026 05:163,48818,716,0011,023,0002,046,0002,490,368
5Feb 6, 2026 05:153,49520,634,2731,025,0002,051,0002,498,560
6Feb 6, 2026 05:153,50822,003,6561,029,0002,058,0002,277,376