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:36Aniruddha DebAniruddha DebScore: 110,544Success
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:35110,249125,050,57795,019,0002,000,0002,428,928
2Apr 11, 2025 21:35110,260125,561,54396,029,0001,000,0002,428,928
3Apr 11, 2025 21:35110,265124,729,51495,033,0002,000,0002,269,184
4Apr 11, 2025 21:35110,380115,062,15796,133,0001,001,0002,510,848
5Apr 11, 2025 21:35110,452115,711,88097,198,00002,281,472
6Apr 11, 2025 21:35110,466120,618,51095,206,0002,004,0002,433,024
7Apr 11, 2025 21:35110,518123,647,68996,254,0001,002,0002,531,328
8Apr 11, 2025 21:35110,544120,665,02697,279,00002,531,328
9Apr 11, 2025 21:35110,686122,303,58996,400,0001,004,0002,269,184
10Apr 11, 2025 21:35110,733123,629,83097,445,00002,437,120
11Apr 11, 2025 21:36110,749120,412,32596,455,0001,004,0002,531,328
12Apr 11, 2025 21:36110,786118,269,76397,492,00002,531,328
13Apr 11, 2025 21:35110,793117,547,56196,493,0001,005,0002,269,184
14Apr 11, 2025 21:36110,818117,190,43196,515,0001,005,0002,437,120
15Apr 11, 2025 21:35110,852118,932,36997,550,00002,433,024