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 27, 2026 13:33SemyonSemyonScore: 12,560,440Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 27, 2026 13:3312,482,17611,015,767,08710,982,316,0001,999,0002,289,664
2Jan 27, 2026 13:3312,528,66811,052,039,30611,021,230,0003,998,0002,367,488
3Jan 27, 2026 13:3312,537,74111,064,051,74111,032,213,000999,0002,281,472
4Jan 27, 2026 13:3312,546,06311,072,925,44711,039,536,000999,0002,281,472
5Jan 27, 2026 13:3312,560,44011,085,972,61511,048,190,0004,997,0002,281,472
6Jan 27, 2026 13:3312,570,09511,088,647,67211,058,686,0002,998,0002,281,472
7Jan 27, 2026 13:3312,597,75811,117,365,08611,084,028,0001,999,0002,293,760
8Jan 27, 2026 13:3312,606,78211,128,526,77811,090,970,0002,998,0002,281,472
9Jan 27, 2026 13:3312,621,85911,141,525,15811,106,237,000999,0002,289,664