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 22, 2026 17:03Josu San MartinJosu San MartinScore: 5,656Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 17:065,52012,379,8654,858,00002,113,536
2Jun 22, 2026 17:065,56412,468,7034,897,00002,113,536
3Jun 22, 2026 17:065,63512,399,8184,959,00002,113,536
4Jun 22, 2026 17:065,64612,449,8274,969,00002,113,536
5Jun 22, 2026 17:065,65612,851,1494,978,00002,113,536
6Jun 22, 2026 17:065,66812,713,0334,988,00002,113,536
7Jun 22, 2026 17:065,67112,762,8034,991,00002,113,536
8Jun 22, 2026 17:065,67112,771,6784,991,00002,113,536
9Jun 22, 2026 17:065,68812,511,2525,006,00002,113,536