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 13, 2026 22:51vahookvahookScore: 4,811Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2026 22:384,68917,800,0822,063,0002,063,0002,277,376
2Jan 13, 2026 22:384,70222,455,2552,069,0002,069,0002,277,376
3Jan 13, 2026 22:384,75516,988,6272,092,0002,092,0002,494,464
4Jan 13, 2026 22:384,76425,633,0312,096,0002,096,0002,277,376
5Jan 13, 2026 22:384,77824,952,0863,154,0001,051,0002,490,368
6Jan 13, 2026 22:384,81022,053,5753,175,0001,058,0002,498,560
7Jan 13, 2026 22:384,81121,164,9433,176,0001,058,0002,281,472
8Jan 13, 2026 22:514,81419,598,3212,118,0002,118,0002,281,472
9Jan 13, 2026 22:514,81518,915,4983,178,0001,059,0002,277,376
10Jan 13, 2026 22:514,82420,899,7453,184,0001,061,0002,277,376
11Jan 13, 2026 22:384,82518,624,4893,185,0001,061,0002,494,464
12Jan 13, 2026 22:384,82523,271,7663,185,0001,061,0002,535,424