Number Of Prime factor (N.O.P.) Week 3 (Main Page)

Name of participants appearing\large{Name\space of\space participants\space appearing} :

  1. David Stiff

  2. Siddharth Chakravarty

  3. Zakir Husain

  4. Vinayak Srivastava

The program\large{The\space program} :

The program have been edited a bit, so please use this new program not the one I shared before

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from math import * 
l=#type l here (value given to you) 
m=#type m here (value given to you) 
def primefact(x):
    if x==1:return [] 
    if x%2==0:return [2]+primefact(x/2) 
    if x%3==0:return [3]+primefact(x/3) 
    for a in range(1,int(((x+1)**0.5)/6+1)+1):
        if x %(6*a-1)==0: 
            return [6*a-1]+primefact(int(x/(6*a-1))) 
        if x %(6*a+1)==0: 
            return [6*a+1]+primefact(int(x/(6*a+1))) 
    return [x] 
for b in range(0,1+int(log(m,2))):
    c=str(b)
    a="a"+c 
    globals()[a]=[] 
print("processing%")
for a in range(l,m): 
    if a%(10**5)==0:print((a-l)/(m-l)*100) 
    eval("a"+str(len(primefact(a)))+".append("+str(a)+")")
print("processing finished. final data is below")
for i in range(0,int(log(m,2))+1):
    print(eval("len(a"+str(i)+")"))

Variable values\large{Variable\space values} :

Name of participantValue of llValue of mm
Siddharth Chakravarty2×1082\times10^85×106+2×1085\times10^6+2\times10^8
David Stiff5×106+2×1085\times10^6+2\times10^8107+2×10810^7+2\times10^8
Vinayak Srivastava107+2×10810^7+2\times10^85×106+107+2×1085\times10^6+10^7+2\times10^8
Zakir Husain5×106+107+2×1085\times10^6+10^7+2\times10^83×107+2×1083\times10^7+2\times10^8

Note :

  • If Akela Chana, Jeff Giff or anyone else is wishing to participate also then you may ask in the comments.

  • If any of you will complete your work before the end of the week and wanted more then you can voluntarily ask for it.

  • If you are having any doubts related to this then clear it here.

  • If you know a better programming language then kindly suggest.

  • For more information see On Most common number of prime factor!.

  • In python aba^b is written as : a**b So don't write it in this format - ''a^b'' as it will not work properly.

  • Analysis till 2×1082\times10^8 will be there on the Analysis Page soon!

Note by Zakir Husain
1 month, 1 week ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Sort by:

Top Newest

Log in to reply

Keep these up!

I am not joining though!

Yajat Shamji - 1 month, 1 week ago

Log in to reply

1
2
l = 5*10**6 + 2*10**8
m = 10**7 + 2*10**8

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
0
261153
818319
1158870
1060061
746573
450997
248044
128719
65129
32110
15592
7523
3611
1766
796
396
179
88
39
20
8
4
0
2
1
0
0

David Stiff - 1 month, 1 week ago

Log in to reply

Announcement:\large{Announcement}: No week will be scheduled till 3030 September, 2020.

Zakir Husain - 3 weeks, 4 days ago

Log in to reply

×

Problem Loading...

Note Loading...

Set Loading...