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:17Aniruddha DebAniruddha DebScore: 116,198Success
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:17115,750126,034,688101,860,00002,531,328
2Apr 11, 2025 21:17115,989123,933,384101,070,0001,000,0002,269,184
3Apr 11, 2025 21:17116,132128,550,595101,195,0001,001,0002,269,184
4Apr 11, 2025 21:17116,166129,153,380102,226,00002,433,024
5Apr 11, 2025 21:17116,198124,955,239102,254,00002,428,928
6Apr 11, 2025 21:17116,240123,567,785100,286,0002,005,0002,531,328
7Apr 11, 2025 21:17116,292125,137,462101,334,0001,003,0002,428,928
8Apr 11, 2025 21:17116,325123,405,503102,366,00002,269,184
9Apr 11, 2025 21:17116,430128,953,818101,454,0001,004,0002,510,848