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:04Wookyung JeongWookyung JeongScore: 10,082,609Success
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:049,911,5258,758,440,6988,676,194,00045,948,0002,269,184
2Dec 19, 2025 13:0410,082,6098,915,294,2908,820,774,00051,922,0002,269,184
3Dec 19, 2025 13:0410,163,0018,979,903,4698,905,499,00037,942,0002,269,184