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 26, 2025 12:49wainCGPwainCGPScore: 30,576Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2025 12:4930,44751,866,61725,763,0001,030,0002,273,280
2Feb 26, 2025 12:4930,56154,126,46824,902,0001,992,0002,273,280
3Feb 26, 2025 12:4930,57052,768,81125,906,000996,0002,379,776
4Feb 26, 2025 12:4930,57254,353,01025,907,000996,0002,273,280
5Feb 26, 2025 12:4930,57655,080,10025,911,000996,0002,277,376
6Feb 26, 2025 12:4930,57858,609,64824,916,0001,993,0002,277,376
7Feb 26, 2025 12:4930,58456,591,40625,918,000996,0002,289,664
8Feb 26, 2025 12:4930,59057,041,04624,925,0001,994,0002,277,376
9Feb 26, 2025 12:4930,59955,164,89726,927,00002,289,664