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 listFeb 15, 2024 13:07Robert BurkeRobert BurkeScore: 21,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2024 13:0717,09577,117,71015,043,16902,252,800
2Feb 15, 2024 13:0717,17176,020,29015,110,71802,269,184
3Feb 15, 2024 13:0717,20273,609,77115,137,47902,260,992
4Feb 15, 2024 13:0721,48950,599,57917,915,000995,0002,420,736
5Feb 15, 2024 13:0721,48946,135,14316,920,0001,990,0002,416,640
6Feb 15, 2024 13:0721,50240,953,76216,931,0001,991,0002,281,472
7Feb 15, 2024 13:0721,53141,055,19716,953,0001,994,0002,281,472
8Feb 15, 2024 13:0721,56342,658,97416,978,0001,997,0002,281,472
9Feb 15, 2024 13:0721,56550,051,14516,980,0001,997,0002,281,472
10Feb 15, 2024 13:0721,57540,689,83116,988,0001,998,0002,416,640
11Feb 15, 2024 13:0721,59740,363,38717,005,0002,000,0002,420,736
12Feb 15, 2024 13:0721,61946,126,28318,024,0001,001,0002,281,472