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:08limanjun99limanjun99Score: 48,199Success
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:0848,03065,082,00340,254,0002,012,0002,404,352
2Mar 18, 2026 15:0848,06464,078,37440,282,0002,014,0002,281,472
3Mar 18, 2026 15:0848,09864,036,72340,311,0002,015,0002,289,664
4Mar 18, 2026 15:0848,11364,386,36840,323,0002,016,0002,392,064
5Mar 18, 2026 15:0848,19964,698,41442,415,00002,277,376
6Mar 18, 2026 15:0848,29267,993,65441,486,0001,011,0002,379,776
7Mar 18, 2026 15:0848,34567,186,47741,532,0001,012,0002,379,776
8Mar 18, 2026 15:0848,40564,980,94742,596,00002,375,680
9Mar 18, 2026 15:0848,43264,007,50440,591,0002,029,0002,281,472