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 13, 2024 02:35zielajzielajScore: 8,381Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 02:358,33824,554,8387,337,00002,306,048
2Dec 13, 2024 02:358,34823,078,5097,346,00002,310,144
3Dec 13, 2024 02:358,35826,083,0517,355,00002,527,232
4Dec 13, 2024 02:358,36020,326,0797,357,00002,310,144
5Dec 13, 2024 02:358,38125,666,4047,375,00002,310,144
6Dec 13, 2024 02:358,40521,701,1047,396,00002,306,048
7Dec 13, 2024 02:358,41420,877,9016,347,0001,057,0002,310,144
8Dec 13, 2024 02:358,46028,315,0067,445,00002,527,232
9Dec 13, 2024 02:359,12424,534,8607,026,0001,003,0002,297,856