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: 49,034Success
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,92868,532,20641,055,0002,002,0002,387,968
2Mar 18, 2026 15:0848,94276,705,06440,065,0003,004,0002,277,376
3Mar 18, 2026 15:0849,02468,878,54241,135,0002,006,0002,379,776
4Mar 18, 2026 15:0849,02568,707,71041,136,0002,006,0002,383,872
5Mar 18, 2026 15:0849,03466,004,69740,140,0003,010,0002,375,680
6Mar 18, 2026 15:0849,03867,632,90341,146,0002,007,0002,428,928
7Mar 18, 2026 15:0849,03869,243,15941,146,0002,007,0002,383,872
8Mar 18, 2026 15:0849,07269,488,33541,175,0002,008,0002,383,872
9Mar 18, 2026 15:0849,31472,058,62541,378,0002,018,0002,371,584