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 listOct 9, 2026 18:27janwwwjanwwwScore: 4,269Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 9, 2026 18:294,13812,485,0823,642,00002,117,632
2Oct 9, 2026 18:294,16912,523,4563,669,00002,117,632
3Oct 9, 2026 18:294,25312,331,1773,743,00002,117,632
4Oct 9, 2026 18:294,26412,398,9703,753,00002,117,632
5Oct 9, 2026 18:294,26913,062,5223,757,00002,117,632
6Oct 9, 2026 18:294,27112,691,2093,759,00002,117,632
7Oct 9, 2026 18:294,27312,474,0163,761,00002,117,632
8Oct 9, 2026 18:294,35612,515,6113,834,00002,117,632
9Oct 9, 2026 18:294,35912,586,2163,836,00002,117,632