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 17, 2025 08:44AnSaAnSaScore: 9,531,572Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2025 08:449,469,8958,372,000,6418,306,533,00026,975,0002,519,040
2Dec 17, 2025 08:449,531,5728,421,784,8978,366,807,00020,976,0002,273,280
3Dec 17, 2025 08:449,661,5438,537,221,5998,478,186,00023,972,0002,273,280