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 18:07vahookvahookScore: 5,095Success
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 18:075,06622,810,7773,344,0001,114,0002,277,376
2Jan 12, 2026 18:075,07019,772,4303,347,0001,115,0002,498,560
3Jan 12, 2026 18:075,08220,355,3963,354,0001,118,0002,281,472
4Jan 12, 2026 18:075,08321,373,3383,355,0001,118,0002,494,464
5Jan 12, 2026 18:075,09525,174,4533,363,0001,121,0002,277,376
6Jan 12, 2026 18:075,10022,868,1563,366,0001,122,0002,502,656
7Jan 12, 2026 18:075,12520,052,8413,383,0001,127,0002,494,464
8Jan 12, 2026 18:075,13320,417,6543,388,0001,129,0002,490,368
9Jan 12, 2026 18:075,13921,237,2803,392,0001,130,0002,535,424