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 21, 2026 13:33Johan SannemoJohan SannemoScore: 8,909Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2026 13:338,85727,960,7105,567,0002,227,0002,281,472
2Jan 21, 2026 13:338,90924,530,0205,880,0001,960,0002,281,472
3Jan 21, 2026 13:339,06524,691,0184,986,0002,991,0002,498,560