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 29, 2024 21:25zielajzielajScore: 3,605Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2024 21:253,49419,843,4161,025,0002,050,0002,469,888
2Dec 29, 2024 21:253,50223,488,1351,027,0002,055,0002,469,888
3Dec 29, 2024 21:253,56618,371,1302,092,0001,046,0002,322,432
4Dec 29, 2024 21:253,59018,239,3441,053,0002,106,0002,461,696
5Dec 29, 2024 21:253,60519,537,9241,057,0002,115,0002,535,424
6Dec 29, 2024 21:253,73619,864,9381,096,0002,192,0002,301,952
7Dec 29, 2024 21:253,77520,353,9962,215,0001,107,0002,465,792
8Dec 29, 2024 21:254,46022,515,0002,944,000981,0002,519,040
9Dec 29, 2024 21:254,52024,851,9931,989,0001,989,0002,281,472