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 17:16Wookyung JeongWookyung JeongScore: 9,796,313Success
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 17:169,617,5588,494,866,2588,412,503,00050,948,0002,277,376
2Dec 19, 2025 17:169,796,3138,654,041,5308,581,802,00038,953,0002,277,376
3Dec 19, 2025 17:169,811,7998,670,299,8448,588,445,00045,938,0002,498,560