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 19, 2026 19:21Johan SannemoJohan SannemoScore: 110,502Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 19:21110,068121,973,63595,862,000998,0002,273,280
2Jan 19, 2026 19:21110,214121,103,16894,989,0001,999,0002,281,472
3Jan 19, 2026 19:21110,314118,593,12396,076,0001,000,0002,523,136
4Jan 19, 2026 19:21110,499126,545,33296,237,0001,002,0002,523,136
5Jan 19, 2026 19:21110,502120,876,61896,240,0001,002,0002,273,280
6Jan 19, 2026 19:21110,623123,786,45696,345,0001,003,0002,281,472
7Jan 19, 2026 19:21110,805123,977,85696,503,0001,005,0002,269,184
8Jan 19, 2026 19:21110,843122,506,09196,537,0001,005,0002,523,136
9Jan 19, 2026 19:21111,284121,779,42396,931,000999,0002,269,184