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 listDec 26, 2024 15:24MatthiasMatthiasScore: 122,815Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 26, 2024 15:24122,065132,095,161106,414,0001,003,0002,277,376
2Dec 26, 2024 15:24122,488138,514,134105,793,0001,996,0002,277,376
3Dec 26, 2024 15:24122,548131,604,732106,844,000998,0002,273,280
4Dec 26, 2024 15:24122,651130,734,641105,935,0001,998,0002,269,184
5Dec 26, 2024 15:24122,815133,930,536106,076,0002,001,0002,285,568
6Dec 26, 2024 15:24122,861129,959,762106,116,0002,002,0002,387,968
7Dec 26, 2024 15:24122,911134,117,444106,159,0002,003,0002,285,568
8Dec 26, 2024 15:24122,978135,017,934106,217,0002,004,0002,273,280
9Dec 26, 2024 15:24123,685140,443,354106,846,0001,997,0002,285,568