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 listJul 31, 2022 15:24Robert BurkeRobert BurkeScore: 36,463Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 15:2435,92498,248,17031,612,78702,277,376
2Jul 31, 2022 15:2436,32985,134,34731,969,77302,273,280
3Jul 31, 2022 15:2436,34289,616,05331,980,75802,269,184
4Jul 31, 2022 15:2436,40955,292,54531,039,0001,001,0002,297,856
5Jul 31, 2022 15:2436,42654,462,28931,054,0001,001,0002,297,856
6Jul 31, 2022 15:2436,45056,321,21231,074,0001,002,0002,535,424
7Jul 31, 2022 15:2436,46358,562,01331,085,0001,002,0002,289,664
8Jul 31, 2022 15:2436,51459,633,96830,124,0002,008,0002,387,968
9Jul 31, 2022 15:2436,53254,603,59531,144,0001,004,0002,301,952
10Jul 31, 2022 15:2436,53959,441,41831,150,0001,004,0002,273,280
11Jul 31, 2022 15:2436,64558,352,84230,233,0002,015,0002,273,280
12Jul 31, 2022 15:2436,72252,698,78629,286,0003,029,0002,273,280