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 listAug 8, 2025 06:00KeefeKeefeScore: 60,176Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 8, 2025 06:0060,04179,001,87050,843,0001,993,0002,285,568
2Aug 8, 2025 06:0060,05579,918,42051,851,000997,0002,285,568
3Aug 8, 2025 06:0060,13077,338,82251,916,000998,0002,400,256
4Aug 8, 2025 06:0060,16380,635,95151,945,000998,0002,285,568
5Aug 8, 2025 06:0060,17680,459,17450,957,0001,998,0002,285,568
6Aug 8, 2025 06:0060,24577,813,73251,016,0002,000,0002,392,064
7Aug 8, 2025 06:0060,30281,497,15252,065,0001,001,0002,277,376
8Aug 8, 2025 06:0060,33483,672,60151,091,0002,003,0002,285,568
9Aug 8, 2025 06:0060,35885,286,71550,109,0003,006,0002,273,280