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 16, 2024 22:59MatthiasMatthiasScore: 199,001Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2024 22:59197,661194,124,597171,943,0001,999,0002,285,568
2Dec 16, 2024 22:59198,380200,823,671173,571,0001,003,0002,285,568
3Dec 16, 2024 22:59198,705196,483,178173,861,000999,0002,519,040
4Dec 16, 2024 22:59198,776197,658,029172,924,0001,999,0002,285,568
5Dec 16, 2024 22:59199,001198,176,385172,119,0003,002,0002,273,280
6Dec 16, 2024 22:59199,042204,240,345173,156,0002,001,0002,285,568
7Dec 16, 2024 22:59199,444204,338,836174,509,0001,002,0002,269,184
8Dec 16, 2024 22:59200,064198,367,799174,056,0002,000,0002,285,568
9Dec 16, 2024 22:59200,484199,698,932175,424,0001,002,0002,285,568