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 listFeb 15, 2026 03:06zielajzielajScore: 3,482Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2026 03:063,36022,378,6532,957,00002,437,120
2Feb 15, 2026 03:073,43120,255,0072,013,0001,006,0002,433,024
3Feb 15, 2026 03:073,43120,162,1362,013,0001,006,0002,273,280
4Feb 15, 2026 03:063,48220,534,3382,043,0001,021,0002,437,120
5Feb 15, 2026 03:063,48424,268,9352,044,0001,022,0002,441,216
6Feb 15, 2026 03:073,52618,145,5452,069,0001,034,0002,433,024