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 listNov 29, 2022 05:27apuxbtapuxbtScore: 36,722Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 05:2736,51755,140,84130,127,0002,008,0002,273,280
2Nov 29, 2022 05:2736,61953,411,91730,211,0002,014,0002,273,280
3Nov 29, 2022 05:2736,62453,372,66430,215,0002,014,0002,322,432
4Nov 29, 2022 05:2736,64558,267,59929,225,0003,023,0002,314,240
5Nov 29, 2022 05:2736,65052,184,87830,237,0002,015,0002,437,120
6Nov 29, 2022 05:2736,66855,961,09729,243,0003,025,0002,273,280
7Nov 29, 2022 05:2736,72255,906,00129,286,0003,029,0002,428,928
8Nov 29, 2022 05:2736,75059,875,16628,298,0004,042,0002,273,280
9Nov 29, 2022 05:2736,88658,661,73129,417,0003,043,0002,310,144
10Nov 29, 2022 05:2737,89098,574,71833,343,35002,293,760
11Nov 29, 2022 05:2737,93293,107,01233,379,76202,297,856
12Nov 29, 2022 05:2738,007114,522,77533,445,90702,293,760