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 30, 2024 23:07zielajzielajScore: 3,580Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2024 23:073,49225,862,0891,024,0002,049,0002,281,472
2Dec 30, 2024 23:073,49822,411,5441,026,0002,052,0002,457,600
3Dec 30, 2024 23:073,56921,202,4461,047,0002,094,0002,535,424
4Dec 30, 2024 23:073,57318,960,4551,048,0002,096,0002,535,424
5Dec 30, 2024 23:073,58022,904,8911,050,0002,100,0002,461,696
6Dec 30, 2024 23:073,58321,887,8291,051,0002,102,0002,461,696
7Dec 30, 2024 23:073,58816,002,0041,052,0002,105,0002,461,696
8Dec 30, 2024 23:073,67224,187,5241,077,0002,154,0002,461,696
9Dec 30, 2024 23:073,71717,287,5111,090,0002,181,0002,469,888