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 listDec 14, 2024 13:25matsuoka-601matsuoka-601Score: 17,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 12, 2025 12:3417,04936,547,53712,003,0003,000,0002,281,472
2Jan 12, 2025 12:3417,05230,417,02214,006,0001,000,0002,281,472
3Jan 12, 2025 12:3117,18432,698,16613,106,0002,016,0002,281,472
4Jan 12, 2025 12:3417,19038,729,85914,119,0001,008,0002,469,888
5Jan 12, 2025 12:3117,22232,350,58114,145,0001,010,0002,461,696
6Jan 12, 2025 12:3117,23029,996,56713,141,0002,021,0002,379,776
7Dec 14, 2024 13:2523,51456,716,17314,780,0005,912,0002,420,736
8Dec 14, 2024 13:2523,82461,670,92314,975,0005,990,0002,453,504
9Dec 14, 2024 13:2524,17460,481,86314,182,0007,091,0002,379,776