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 11:11wainCGPwainCGPScore: 34,053Success
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 11:1133,91857,004,86426,864,0002,984,0002,301,952
2Feb 25, 2025 11:1133,96057,054,85727,893,0001,992,0002,297,856
3Feb 25, 2025 11:1134,01754,993,76425,944,0003,991,0002,461,696
4Feb 25, 2025 11:1134,05159,460,37525,970,0003,995,0002,482,176
5Feb 25, 2025 11:1134,05352,909,99226,971,0002,996,0002,301,952
6Feb 25, 2025 11:1134,13452,881,56026,033,0004,005,0002,306,048
7Feb 25, 2025 11:1134,20656,483,41327,091,0003,010,0002,437,120
8Feb 25, 2025 11:1134,21156,101,22326,092,0004,014,0002,375,680
9Feb 25, 2025 11:1134,22852,889,61228,113,0002,008,0002,473,984