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 listSep 14, 2026 09:06Haha ExpertHaha ExpertScore: 129,921Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 14, 2026 09:09129,690122,669,672114,128,00002,117,632
2Sep 14, 2026 09:09129,759122,856,962114,188,00002,117,632
3Sep 14, 2026 09:09129,797122,800,335114,222,00002,117,632
4Sep 14, 2026 09:09129,920122,959,197114,330,00002,117,632
5Sep 14, 2026 09:09129,921122,891,325114,331,00002,117,632
6Sep 14, 2026 09:09130,056122,974,346114,450,00002,117,632
7Sep 14, 2026 09:09130,062123,538,126114,455,00002,117,632
8Sep 14, 2026 09:09130,107133,563,856113,483,0001,012,0002,117,632
9Sep 14, 2026 09:09130,548124,812,073113,881,0001,002,0002,117,632