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 28, 2022 08:43Yuriy LyfenkoYuriy LyfenkoScore: 29,724Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 08:4329,50953,569,87724,970,000998,0002,285,568
2Dec 28, 2022 08:4329,62548,709,49125,068,0001,002,0002,285,568
3Dec 28, 2022 08:4329,67648,708,12224,107,0002,008,0002,285,568
4Dec 28, 2022 08:4329,68453,446,67324,113,0002,009,0002,285,568
5Dec 28, 2022 08:4329,68449,975,95024,113,0002,009,0002,285,568
6Dec 28, 2022 08:4329,68548,939,41124,114,0002,009,0002,285,568
7Dec 28, 2022 08:4329,72454,860,25024,145,0002,012,0002,285,568
8Dec 28, 2022 08:4329,77454,239,15424,186,0002,015,0002,281,472
9Dec 28, 2022 08:4329,84350,652,83324,242,0002,020,0002,285,568
10Dec 28, 2022 08:4331,143105,618,42027,405,63302,248,704
11Dec 28, 2022 08:4331,148110,261,63327,410,09302,244,608
12Dec 28, 2022 08:4331,161141,095,99627,421,82902,244,608