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 listApr 23, 2026 21:41Pavel SkripkinPavel SkripkinScore: 184,221Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 21:42183,697182,461,916160,650,0001,004,0002,433,024
2Apr 23, 2026 21:42184,221180,830,939161,109,0001,006,0002,437,120
3Apr 23, 2026 21:42184,463180,083,004161,326,0001,002,0002,424,832