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 listDec 19, 2025 19:14Wookyung JeongWookyung JeongScore: 216,210Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2025 19:14215,835222,988,790187,936,0001,999,0002,289,664
2Dec 19, 2025 19:14215,955214,064,442188,040,0002,000,0002,289,664
3Dec 19, 2025 19:14216,084211,984,755188,153,0002,001,0002,277,376
4Dec 19, 2025 19:14216,085214,554,736189,155,0001,000,0002,277,376
5Dec 19, 2025 19:14216,210212,476,397189,264,0001,001,0002,289,664
6Dec 19, 2025 19:14216,302213,426,247190,346,00002,289,664
7Dec 19, 2025 19:14216,416213,966,181189,444,0001,002,0002,289,664
8Dec 19, 2025 19:14216,542217,079,761189,555,0001,002,0002,289,664
9Dec 19, 2025 19:14216,585217,970,364189,592,0001,003,0002,289,664