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 listOct 19, 2024 22:30Sybrand AarnoutseSybrand AarnoutseScore: 3,674,380Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 19, 2024 22:303,657,3503,243,157,3583,217,469,000999,0002,293,760
2Oct 19, 2024 22:303,660,2803,243,902,5953,220,047,000999,0002,285,568
3Oct 19, 2024 22:303,669,6833,262,046,3343,228,322,000999,0002,285,568
4Oct 19, 2024 22:303,670,0823,256,875,8383,228,673,000999,0002,285,568
5Oct 19, 2024 22:303,674,3803,262,618,5373,233,454,00002,293,760
6Oct 19, 2024 22:303,674,7593,262,445,4433,232,789,000999,0002,289,664
7Oct 19, 2024 22:303,677,3033,265,224,9263,235,028,000999,0002,285,568
8Oct 19, 2024 22:303,678,4503,262,411,3693,236,037,000999,0002,289,664
9Oct 19, 2024 22:303,681,1883,267,657,0343,237,446,0001,999,0002,293,760