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 9, 2026 21:32vahookvahookScore: 5,603Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2026 21:315,58518,068,2933,932,000983,0002,535,424
2Jan 9, 2026 21:315,58523,834,1943,932,000983,0002,535,424
3Jan 9, 2026 21:315,59723,522,6263,940,000985,0002,445,312
4Jan 9, 2026 21:325,59816,221,3313,941,000985,0002,392,064
5Jan 9, 2026 21:315,59919,283,1654,927,00002,445,312
6Jan 9, 2026 21:315,60019,678,4463,943,000985,0002,506,752
7Jan 9, 2026 21:315,60320,632,5282,959,0001,972,0002,535,424
8Jan 9, 2026 21:315,60818,969,3504,935,00002,441,216
9Jan 9, 2026 21:315,61022,641,3843,950,000987,0002,445,312
10Jan 9, 2026 21:325,61019,030,1962,962,0001,975,0002,277,376
11Jan 9, 2026 21:315,72523,843,1164,031,0001,007,0002,535,424
12Jan 9, 2026 21:325,75323,650,5004,051,0001,012,0002,445,312