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 4, 2026 18:47vahookvahookScore: 3,590Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 18:473,48516,527,9871,022,0002,045,0002,494,464
2Feb 4, 2026 18:473,49419,900,9121,025,0002,050,0002,498,560
3Feb 4, 2026 18:473,54318,486,8511,039,0002,079,0002,502,656
4Feb 4, 2026 18:473,55720,879,8011,043,0002,087,0002,502,656
5Feb 4, 2026 18:473,56719,976,9401,046,0002,093,0002,494,464
6Feb 4, 2026 18:473,57321,262,8901,048,0002,096,0002,277,376
7Feb 4, 2026 18:473,58316,355,2661,051,0002,102,0002,535,424
8Feb 4, 2026 18:473,59016,481,4291,053,0002,106,0002,494,464
9Feb 4, 2026 18:473,59716,721,4011,055,0002,110,0002,535,424
10Feb 4, 2026 18:473,59819,201,1071,055,0002,111,0002,482,176
11Feb 4, 2026 18:473,60718,315,2601,058,0002,116,0002,498,560
12Feb 4, 2026 18:473,60819,484,9581,058,0002,117,0002,498,560
13Feb 4, 2026 18:473,61017,881,1031,059,0002,118,0002,490,368
14Feb 4, 2026 18:473,67819,920,1182,158,0001,079,0002,494,464
15Feb 4, 2026 18:473,71723,665,2952,181,0001,090,0002,498,560