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 5, 2024 22:50Joad NacerJoad NacerScore: 50,820Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 5, 2024 22:5049,95666,894,75542,962,000999,0002,269,184
2Dec 5, 2024 22:5050,07564,436,32643,065,0001,001,0002,285,568
3Dec 5, 2024 22:5050,10164,246,19142,085,0002,004,0002,269,184
4Dec 5, 2024 22:5050,22666,252,43843,195,0001,004,0002,277,376
5Dec 5, 2024 22:5050,82069,644,63644,722,00002,375,680
6Dec 5, 2024 22:5055,56677,913,21647,901,000997,0002,506,752
7Dec 5, 2024 22:5055,76771,774,66948,074,0001,001,0002,498,560
8Dec 5, 2024 22:5056,35173,526,31949,589,00002,482,176
9Dec 5, 2024 22:5057,25979,443,07150,388,00002,281,472