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 14, 2026 22:11olliecrowolliecrowScore: 20,682Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 22:1120,50336,934,72517,041,0001,002,0002,514,944
2Feb 14, 2026 22:1120,53345,368,63217,066,0001,003,0002,265,088
3Feb 14, 2026 22:1120,60638,640,18117,126,0001,007,0002,355,200
4Feb 14, 2026 22:1120,60741,975,65017,127,0001,007,0002,523,136
5Feb 14, 2026 22:1120,68245,333,98517,189,0001,011,0002,523,136
6Feb 14, 2026 22:1120,68346,248,46917,190,0001,011,0002,523,136
7Feb 14, 2026 22:1120,68436,867,32017,191,0001,011,0002,351,104
8Feb 14, 2026 22:1120,78534,261,62018,291,00002,523,136
9Feb 14, 2026 22:1120,78844,984,47017,277,0001,016,0002,523,136