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 19, 2023 20:00Oleg TOleg TScore: 80,689Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2023 20:1880,232140,828,90070,603,84902,314,240
2Feb 19, 2023 20:0080,541131,313,86270,876,17202,191,360
3Feb 19, 2023 20:1880,638131,543,66170,961,48202,318,336
4Feb 19, 2023 20:0080,689144,939,30171,006,46702,191,360
5Feb 19, 2023 20:1880,711145,103,75071,025,42002,199,552
6Feb 19, 2023 20:0080,803153,884,77171,106,77902,260,992