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 21:57Johan SannemoJohan SannemoScore: 31,970Success
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 21:5731,85050,895,11225,025,0003,003,0002,281,472
2Jan 19, 2026 21:5731,91157,638,53926,077,0002,005,0002,519,040
3Jan 19, 2026 21:5731,94250,061,44126,102,0002,007,0002,387,968
4Jan 19, 2026 21:5731,94555,551,55326,104,0002,008,0002,281,472
5Jan 19, 2026 21:5731,97051,495,20126,125,0002,009,0002,269,184
6Jan 19, 2026 21:5732,02349,893,13226,168,0002,012,0002,269,184
7Jan 19, 2026 21:5732,07455,376,94626,209,0002,016,0002,281,472
8Jan 19, 2026 21:5732,08356,597,87826,217,0002,016,0002,265,088
9Jan 19, 2026 21:5732,20960,677,53926,320,0002,024,0002,265,088