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 22, 2025 11:41KeefeKeefeScore: 131,844Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 11:41131,168136,756,093114,425,0001,003,0002,408,448
2Feb 22, 2025 11:41131,636143,767,795115,840,00002,400,256
3Feb 22, 2025 11:41131,788143,793,302114,974,000999,0002,277,376
4Feb 22, 2025 11:41131,816139,566,082114,999,000999,0002,408,448
5Feb 22, 2025 11:41131,844137,504,648114,023,0002,000,0002,277,376
6Feb 22, 2025 11:41131,893138,288,201115,066,0001,000,0002,408,448
7Feb 22, 2025 11:41131,976143,680,168115,138,0001,001,0002,277,376
8Feb 22, 2025 11:41132,025138,947,921115,181,0001,001,0002,277,376
9Feb 22, 2025 11:41132,070137,606,624115,221,0001,001,0002,277,376