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 listApr 11, 2025 21:33Aniruddha DebAniruddha DebScore: 116,506Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2025 21:33116,314130,008,635102,356,00002,424,832
2Apr 11, 2025 21:33116,506125,050,836101,520,0001,005,0002,437,120
3Apr 11, 2025 21:33116,589134,561,471100,606,0001,992,0002,531,328