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 listMar 18, 2026 15:04limanjun99limanjun99Score: 56,002Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 15:0455,63576,793,38146,961,0001,998,0002,490,368
2Mar 18, 2026 15:0455,86676,700,19847,156,0002,006,0002,310,144
3Mar 18, 2026 15:0455,90270,019,47547,187,0002,007,0002,482,176
4Mar 18, 2026 15:0455,92274,691,77047,203,0002,008,0002,486,272
5Mar 18, 2026 15:0456,00268,239,78947,271,0002,011,0002,289,664
6Mar 18, 2026 15:0456,05776,135,83046,310,0003,020,0002,306,048
7Mar 18, 2026 15:0456,09371,540,02548,355,0001,007,0002,314,240
8Mar 18, 2026 15:0456,09871,652,21346,344,0003,022,0002,314,240
9Mar 18, 2026 15:0456,13975,476,62747,386,0002,016,0002,289,664