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 12, 2026 20:48vahookvahookScore: 5,097Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 12, 2026 20:485,08021,619,8493,353,0001,117,0002,494,464
2Jan 12, 2026 20:485,08220,470,1133,354,0001,118,0002,277,376
3Jan 12, 2026 20:485,08321,657,0343,355,0001,118,0002,502,656
4Jan 12, 2026 20:485,09217,298,2773,361,0001,120,0002,277,376
5Jan 12, 2026 20:485,09722,267,8363,364,0001,121,0002,277,376
6Jan 12, 2026 20:485,10622,047,6723,370,0001,123,0002,277,376
7Jan 12, 2026 20:485,10720,843,8873,371,0001,123,0002,277,376
8Jan 12, 2026 20:485,12523,466,8663,383,0001,127,0002,277,376
9Jan 12, 2026 20:485,13220,914,4373,387,0001,129,0002,277,376