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 13:10Wookyung JeongWookyung JeongScore: 9,917,511Success
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 13:109,899,5278,740,507,4218,661,627,00049,957,0002,416,640
2Dec 19, 2025 13:109,917,5118,762,964,4348,681,456,00045,954,0002,269,184
3Dec 19, 2025 13:109,968,6748,805,097,2728,729,485,00042,948,0002,269,184