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 listMar 10, 2025 00:49k11ik11iScore: 92,141Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2025 00:4991,772102,071,97879,750,0001,009,0002,277,376
2Mar 10, 2025 00:4991,922113,975,59079,893,000998,0002,269,184
3Mar 10, 2025 00:4991,947108,900,81578,916,0001,997,0002,269,184
4Mar 10, 2025 00:4991,976103,929,36078,941,0001,998,0002,265,088
5Mar 10, 2025 00:4992,141105,431,10280,083,0001,001,0002,269,184
6Mar 10, 2025 00:4992,143104,547,08179,084,0002,002,0002,355,200
7Mar 10, 2025 00:4992,158105,886,19479,097,0002,002,0002,265,088
8Mar 10, 2025 00:4992,189103,963,67279,123,0002,003,0002,269,184
9Mar 10, 2025 00:4992,492105,152,38879,384,0002,009,0002,277,376