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 listJan 10, 2025 17:16zielajzielajScore: 3,399Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 17:163,36325,104,1902,959,00002,273,280
2Jan 10, 2025 17:163,38220,072,7241,984,000992,0002,273,280
3Jan 10, 2025 17:163,38317,057,7321,985,000992,0002,359,296
4Jan 10, 2025 17:163,38622,852,2711,987,000993,0002,273,280
5Jan 10, 2025 17:163,39920,321,0971,994,000997,0002,367,488
6Jan 10, 2025 17:163,40721,133,1011,999,000999,0002,355,200
7Jan 10, 2025 17:163,45322,377,4422,026,0001,013,0002,351,104
8Jan 10, 2025 17:163,46820,743,0462,035,0001,017,0002,359,296
9Jan 10, 2025 17:163,51119,059,6962,060,0001,030,0002,359,296