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 12:40Robert BurkeRobert BurkeScore: 21,793Success
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 12:4017,10473,994,06115,051,59002,265,088
2Feb 15, 2024 12:4017,162102,793,68715,102,90902,260,992
3Feb 15, 2024 12:4017,24785,921,60415,177,33202,260,992
4Feb 15, 2024 12:4021,67033,651,59117,063,0002,007,0002,281,472
5Feb 15, 2024 12:4021,70542,037,98517,090,0002,010,0002,281,472
6Feb 15, 2024 12:4021,78546,414,86017,153,0002,018,0002,404,352
7Feb 15, 2024 12:4021,79340,047,50417,160,0002,018,0002,281,472
8Feb 15, 2024 12:4021,79742,039,86117,162,0002,019,0002,416,640
9Feb 15, 2024 12:4021,81134,271,35617,174,0002,020,0002,281,472
10Feb 15, 2024 12:4021,85940,355,35417,212,0002,024,0002,281,472
11Feb 15, 2024 12:4021,99837,681,78418,340,0001,018,0002,281,472
12Feb 15, 2024 12:4022,03047,336,18018,366,0001,020,0002,281,472