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 13, 2024 15:20zielajzielajScore: 7,861Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 20:447,71124,056,1546,786,00002,269,184
2Dec 13, 2024 20:447,71626,446,3366,790,00002,318,336
3Dec 13, 2024 20:447,73427,315,9316,806,00002,269,184
4Dec 13, 2024 20:447,84327,497,8935,916,000986,0002,314,240
5Dec 13, 2024 15:207,85624,109,5265,926,000987,0002,531,328
6Dec 13, 2024 20:447,85924,162,9855,928,000988,0002,531,328
7Dec 13, 2024 20:447,86120,589,3285,930,000988,0002,416,640
8Dec 13, 2024 20:447,86420,441,4604,943,0001,977,0002,416,640
9Dec 13, 2024 20:447,86722,447,7055,934,000989,0002,318,336
10Dec 13, 2024 20:448,22525,096,7556,204,0001,034,0002,306,048
11Dec 13, 2024 15:208,30224,061,4277,306,00002,416,640
12Dec 13, 2024 15:2010,13124,924,5257,925,000990,0002,310,144