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 listFeb 8, 2025 02:34mgildermgilderScore: 7,169,224Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2025 02:347,112,5696,290,352,8526,257,062,0001,999,0002,285,568
2Feb 8, 2025 02:347,145,9106,314,441,4136,287,402,000999,0002,281,472
3Feb 8, 2025 02:347,150,6656,325,642,5136,291,586,000999,0002,289,664
4Feb 8, 2025 02:347,159,7136,329,771,6266,299,548,000999,0002,371,584
5Feb 8, 2025 02:347,169,2246,351,299,2566,308,917,00002,367,488
6Feb 8, 2025 02:347,169,5276,337,280,0846,307,185,0001,999,0002,281,472
7Feb 8, 2025 02:347,192,6056,356,244,2026,329,492,00002,281,472
8Feb 8, 2025 02:347,193,5386,359,535,9096,329,314,000999,0002,289,664
9Feb 8, 2025 02:347,229,2496,391,898,5076,360,740,000999,0002,375,680