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:45Aniruddha DebAniruddha DebScore: 117,331Success
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:45117,123128,839,495101,067,0002,001,0002,428,928
2Apr 11, 2025 21:45117,159136,678,868102,100,0001,000,0002,437,120
3Apr 11, 2025 21:45117,292127,210,300102,215,0001,002,0002,428,928
4Apr 11, 2025 21:45117,331122,434,543103,251,00002,437,120
5Apr 11, 2025 21:45117,380123,380,182103,294,00002,531,328
6Apr 11, 2025 21:45117,524136,735,725103,421,00002,269,184