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 11:26olliecrowolliecrowScore: 59,773Success
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 11:2659,66371,776,16852,503,00002,502,656
2Feb 14, 2026 11:2659,69573,523,20352,532,00002,273,280
3Feb 14, 2026 11:2659,70178,183,31252,537,00002,494,464
4Feb 14, 2026 11:2659,71674,726,89952,550,00002,535,424
5Feb 14, 2026 11:2659,77380,206,42752,600,00002,535,424
6Feb 14, 2026 11:2659,78272,914,28552,608,00002,273,280
7Feb 14, 2026 11:2659,88280,068,90852,696,00002,498,560
8Feb 14, 2026 11:2659,92280,958,79752,731,00002,494,464
9Feb 14, 2026 11:2660,10982,521,94351,898,000998,0002,502,656