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:24Aniruddha DebAniruddha DebScore: 112,967Success
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:24112,564126,675,62998,056,0001,000,0002,531,328
2Apr 11, 2025 21:24112,633119,503,87097,115,0002,002,0002,531,328
3Apr 11, 2025 21:24112,865124,589,92799,321,00002,420,736
4Apr 11, 2025 21:24112,936137,969,10399,384,00002,433,024
5Apr 11, 2025 21:24112,967123,081,94499,411,00002,433,024
6Apr 11, 2025 21:24112,969126,591,88798,409,0001,004,0002,510,848
7Apr 11, 2025 21:24113,130128,588,90999,554,00002,424,832
8Apr 11, 2025 21:24113,157122,645,05498,573,0001,005,0002,531,328
9Apr 11, 2025 21:24113,299130,646,74999,703,00002,437,120