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 16, 2026 13:57zielajzielajScore: 3,406Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 13:563,34816,887,7321,964,000982,0002,273,280
2Jan 16, 2026 13:573,38918,445,5281,988,000994,0002,351,104
3Jan 16, 2026 13:573,39924,671,5951,994,000997,0002,535,424
4Jan 16, 2026 13:563,40620,979,4021,998,000999,0002,531,328
5Jan 16, 2026 13:573,40620,170,0881,998,000999,0002,359,296
6Jan 16, 2026 13:563,41621,985,5771,002,0002,004,0002,355,200
7Jan 16, 2026 13:573,42423,927,2232,009,0001,004,0002,531,328
8Jan 16, 2026 13:573,48420,392,9162,044,0001,022,0002,359,296
9Jan 16, 2026 13:573,48519,022,6952,045,0001,022,0002,355,200