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 30, 2026 20:42vahookvahookScore: 4,641Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 14, 2026 01:524,60021,465,9352,024,0002,024,0002,486,272
2Jan 30, 2026 20:424,60228,438,6322,025,0002,025,0002,486,272
3Jan 14, 2026 01:494,61417,200,7702,030,0002,030,0002,482,176
4Jan 14, 2026 01:494,61821,266,8872,032,0002,032,0002,277,376
5Jan 14, 2026 01:524,61818,123,5422,032,0002,032,0002,482,176
6Jan 14, 2026 01:494,62017,981,6042,033,0002,033,0002,277,376
7Jan 14, 2026 01:524,62319,266,1742,034,0002,034,0002,531,328
8Jan 14, 2026 01:494,63021,846,8582,037,0002,037,0002,482,176
9Jan 14, 2026 01:524,63620,906,6072,040,0002,040,0002,486,272
10Jan 14, 2026 01:524,63617,204,4442,040,0002,040,0002,486,272
11Jan 14, 2026 01:524,64120,414,8542,042,0002,042,0002,281,472
12Jan 14, 2026 01:494,64521,092,9322,044,0002,044,0002,494,464
13Jan 14, 2026 01:524,64524,330,3562,044,0002,044,0002,486,272
14Jan 14, 2026 01:494,65224,838,9632,047,0002,047,0002,281,472
15Jan 14, 2026 01:494,65224,958,7812,047,0002,047,0002,478,080
16Jan 14, 2026 01:494,65519,163,5102,048,0002,048,0002,478,080
17Jan 14, 2026 01:494,65516,985,0772,048,0002,048,0002,281,472
18Jan 14, 2026 01:524,65919,022,6812,050,0002,050,0002,281,472
19Jan 30, 2026 20:424,65919,868,9372,050,0002,050,0002,281,472
20Jan 30, 2026 20:424,66420,822,0922,052,0002,052,0002,527,232
21Jan 14, 2026 01:524,69122,464,4232,064,0002,064,0002,486,272