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 16:48vahookvahookScore: 5,157Success
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 16:505,13923,954,7053,392,0001,130,0002,277,376
2Jan 12, 2026 16:505,15518,676,1133,402,0001,134,0002,277,376
3Jan 12, 2026 16:485,15622,861,4483,403,0001,134,0002,277,376
4Jan 12, 2026 16:485,15718,680,5943,404,0001,134,0002,277,376
5Jan 12, 2026 16:485,17017,695,4753,413,0001,137,0002,490,368
6Jan 12, 2026 16:505,18921,440,0653,425,0001,141,0002,494,464