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 listJun 28, 2026 20:43zielajzielajScore: 2,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2026 20:462,5799,943,8352,270,00002,113,536
2Jun 28, 2026 20:462,58410,050,9172,274,00002,113,536
3Jun 28, 2026 20:462,59010,023,2652,280,00002,113,536
4Jun 28, 2026 20:462,6319,965,1402,316,00002,113,536
5Jun 28, 2026 20:462,69310,016,5542,370,00002,113,536
6Jun 28, 2026 20:462,7039,972,3342,379,00002,113,536
7Jun 28, 2026 20:463,18210,407,3802,801,00002,113,536
8Jun 28, 2026 20:467,334,5526,462,136,0236,454,406,00002,113,536
9Jun 28, 2026 20:467,347,1346,473,222,6446,465,478,00002,113,536