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 7, 2024 08:47E SequeiraE SequeiraScore: 2,461,134Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 7, 2024 08:472,451,2892,187,560,8362,154,137,0002,997,0002,322,432
2Dec 7, 2024 08:472,461,1342,186,613,4602,164,799,000999,0002,461,696
3Dec 7, 2024 08:472,481,0322,213,001,5492,181,309,0001,999,0002,322,432