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 16, 2024 22:15MatthiasMatthiasScore: 825,259Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2024 22:15818,688746,130,484718,447,0001,998,0002,523,136
2Dec 16, 2024 22:15820,581747,772,871721,111,0001,000,0002,285,568
3Dec 16, 2024 22:15823,382747,509,666722,578,0001,998,0002,285,568
4Dec 16, 2024 22:15824,617750,887,355723,664,0001,999,0002,277,376
5Dec 16, 2024 22:15825,259749,886,334725,228,0001,000,0002,269,184
6Dec 16, 2024 22:15825,953754,664,494724,840,0001,999,0002,285,568
7Dec 16, 2024 22:15825,978748,547,061724,862,0001,999,0002,269,184
8Dec 16, 2024 22:15826,388752,671,375725,224,0001,997,0002,285,568
9Dec 16, 2024 22:15826,949752,774,838726,716,000999,0002,285,568