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 25, 2025 12:14wainCGPwainCGPScore: 33,997Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 25, 2025 12:1433,97060,894,82126,905,0002,989,0002,310,144
2Feb 25, 2025 12:1433,97759,732,07228,904,000996,0002,289,664
3Feb 25, 2025 12:1433,98056,950,60127,909,0001,993,0002,318,336
4Feb 25, 2025 12:1433,98153,554,25326,913,0002,990,0002,420,736
5Feb 25, 2025 12:1433,99754,649,37927,923,0001,994,0002,306,048
6Feb 25, 2025 12:1434,07454,989,36425,987,0003,998,0002,387,968
7Feb 25, 2025 12:1434,11456,648,25728,019,0002,001,0002,420,736
8Feb 25, 2025 12:1434,14359,314,39328,043,0002,003,0002,351,104
9Feb 25, 2025 12:1434,22358,385,96226,101,0004,015,0002,289,664