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 listJan 20, 2026 13:48Johan SannemoJohan SannemoScore: 12,510Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 13:4812,40826,241,8327,941,0002,978,0002,289,664
2Jan 20, 2026 13:4812,51026,973,7719,008,0002,001,0002,338,816
3Jan 20, 2026 13:4812,56831,820,7718,044,0003,016,0002,334,720