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 listMar 1, 2025 22:56wainCGPwainCGPScore: 26,272Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2025 22:5626,14744,817,48021,009,0002,000,0002,289,664
2Mar 1, 2025 22:5626,18244,969,01021,037,0002,003,0002,289,664
3Mar 1, 2025 22:5626,19245,813,89221,045,0002,004,0002,289,664
4Mar 1, 2025 22:5626,19546,115,57022,050,0001,002,0002,289,664
5Mar 1, 2025 22:5626,27244,128,06722,114,0001,005,0002,289,664
6Mar 1, 2025 22:5626,27848,779,26922,120,0001,005,0002,273,280
7Mar 1, 2025 22:5626,28144,523,11821,116,0002,011,0002,289,664
8Mar 1, 2025 22:5626,28649,501,69621,121,0002,011,0002,289,664
9Mar 1, 2025 22:5626,28947,443,17122,129,0001,005,0002,289,664