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 28, 2025 09:41wainCGPwainCGPScore: 30,423Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 28, 2025 09:4130,27553,086,52125,618,0001,024,0002,289,664
2Feb 28, 2025 09:4130,29047,794,52326,655,00002,277,376
3Feb 28, 2025 09:4130,33251,247,98426,692,00002,289,664
4Feb 28, 2025 09:4130,33553,600,79226,695,00002,269,184
5Feb 28, 2025 09:4130,42357,618,38326,772,00002,289,664
6Feb 28, 2025 09:4130,46853,079,59724,826,0001,986,0002,281,472
7Feb 28, 2025 09:4130,55252,804,81325,891,000995,0002,363,392
8Feb 28, 2025 09:4130,55356,090,42125,892,000995,0002,289,664
9Feb 28, 2025 09:4130,57554,209,61825,910,000996,0002,289,664