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:07MatthiasMatthiasScore: 828,108Success
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:07822,070749,426,084722,422,0001,000,0002,277,376
2Dec 16, 2024 22:07823,590748,636,304722,760,0001,999,0002,265,088
3Dec 16, 2024 22:07827,369746,495,448727,085,0001,000,0002,285,568
4Dec 16, 2024 22:07827,388754,348,399727,101,0001,000,0002,265,088
5Dec 16, 2024 22:07828,108752,448,442727,736,000999,0002,289,664
6Dec 16, 2024 22:07829,550754,803,245728,004,0002,000,0002,269,184
7Dec 16, 2024 22:07831,299754,797,465730,544,000999,0002,260,992
8Dec 16, 2024 22:07831,797755,047,321729,982,0001,999,0002,285,568
9Dec 16, 2024 22:07834,495762,680,362733,356,0001,000,0002,285,568