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 12, 2024 21:52zielajzielajScore: 9,645Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 21:529,50322,392,0317,318,0001,045,0002,326,528
2Dec 12, 2024 21:529,64525,971,8077,427,0001,061,0002,269,184
3Dec 12, 2024 21:529,64823,878,5547,429,0001,061,0002,531,328