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 14, 2026 00:29vahookvahookScore: 4,798Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 14, 2026 00:294,76619,281,3982,097,0002,097,0002,277,376
2Jan 14, 2026 00:294,79822,720,4882,111,0002,111,0002,494,464
3Jan 14, 2026 00:294,79819,324,9032,111,0002,111,0002,502,656