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 listJun 27, 2021 19:30Yuriy LyfenkoYuriy LyfenkoScore: 36,939Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 19:3031,63594,980,18727,838,79402,224,128
2Jun 27, 2021 19:3031,63593,290,78227,838,61402,224,128
3Jun 27, 2021 19:3031,63693,688,77527,839,51902,215,936
4Jun 27, 2021 19:3031,65794,632,49127,858,15402,220,032
5Jun 27, 2021 19:3031,77498,374,40227,961,26402,220,032
6Jun 27, 2021 19:3031,83495,028,78028,014,34402,220,032
7Jun 27, 2021 19:3036,73956,301,65431,320,0001,010,0002,269,184
8Jun 27, 2021 19:3036,80857,310,47231,379,0001,012,0002,265,088
9Jun 27, 2021 19:3036,81655,595,00232,398,00002,379,776
10Jun 27, 2021 19:3036,84853,406,62031,413,0001,013,0002,269,184
11Jun 27, 2021 19:3036,89063,863,14731,449,0001,014,0002,269,184
12Jun 27, 2021 19:3036,89556,035,63532,468,00002,269,184
13Jun 27, 2021 19:3036,93956,219,22031,491,0001,015,0002,269,184
14Jun 27, 2021 19:3036,95553,609,53331,504,0001,016,0002,269,184
15Jun 27, 2021 19:3036,95856,294,02031,507,0001,016,0002,269,184
16Jun 27, 2021 19:3036,96852,650,08731,516,0001,016,0002,269,184
17Jun 27, 2021 19:3036,97055,140,17431,518,0001,016,0002,269,184
18Jun 27, 2021 19:3037,00856,665,89532,567,00002,375,680
19Jun 27, 2021 19:3037,06155,957,76131,595,0001,019,0002,269,184
20Jun 27, 2021 19:3037,12556,086,42931,650,0001,020,0002,523,136
21Jun 27, 2021 19:3037,12756,815,03831,651,0001,021,0002,453,504
22Jun 27, 2021 19:3037,16462,289,34032,704,00002,269,184
23Jun 27, 2021 19:3037,20158,597,68631,714,0001,023,0002,375,680
24Jun 27, 2021 19:3037,37460,952,86331,893,000996,0002,371,584