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 listDec 19, 2025 13:26Wookyung JeongWookyung JeongScore: 8,139,373Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2025 13:268,135,6447,201,932,5887,113,442,00045,925,0002,289,664
2Dec 19, 2025 13:268,139,3737,198,887,2087,112,714,00049,934,0002,269,184
3Dec 19, 2025 13:268,203,2707,257,899,5037,173,954,00044,924,0002,490,368