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 listMay 30, 2025 12:08Aniruddha DebAniruddha DebScore: 108,997Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 30, 2025 12:08108,767122,374,19495,715,00002,433,024
2May 30, 2025 12:08108,884123,580,10693,822,0001,996,0002,531,328
3May 30, 2025 12:08108,890119,949,60294,825,000998,0002,531,328
4May 30, 2025 12:08108,940120,459,90994,869,000998,0002,269,184
5May 30, 2025 12:08108,964120,186,25694,890,000998,0002,424,832
6May 30, 2025 12:08108,989116,578,15193,912,0001,998,0002,531,328
7May 30, 2025 12:08108,997116,847,42594,918,000999,0002,510,848
8May 30, 2025 12:08109,057117,643,73294,971,000999,0002,428,928
9May 30, 2025 12:08109,127118,405,34294,032,0002,000,0002,428,928
10May 30, 2025 12:08109,130119,934,65494,034,0002,000,0002,428,928
11May 30, 2025 12:08109,205116,225,06595,099,0001,001,0002,531,328
12May 30, 2025 12:08109,288118,606,16695,172,0001,001,0002,428,928