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 6, 2024 19:43E SequeiraE SequeiraScore: 2,457,383Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 19:432,451,8362,188,158,6992,155,618,0001,998,0002,326,528
2Dec 6, 2024 19:432,457,3832,184,552,4982,162,497,00002,326,528
3Dec 6, 2024 19:432,458,1582,187,155,3332,160,181,0002,998,0002,322,432