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 listMay 14, 2024 16:26exebookexebookScore: 7,942,666Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 16:267,941,1917,135,686,6136,988,248,25002,224,128
2May 14, 2024 16:267,942,6667,108,341,4646,989,545,72102,236,416
3May 14, 2024 16:267,948,9227,124,574,6346,995,050,93902,273,280