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 11:32Wookyung JeongWookyung JeongScore: 6,788,903Success
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 11:326,783,0235,995,466,1655,967,061,0001,999,0002,289,664
2Dec 19, 2025 11:326,788,9036,008,167,5905,973,236,000999,0002,269,184
3Dec 19, 2025 11:326,792,9286,011,562,4315,975,778,0001,999,0002,277,376