frommathimport*l=#type l here (value given to you) m=#type m here (value given to you) defprimefact(x):ifx==1:return[]ifx%2==0:return[2]+primefact(x/2)ifx%3==0:return[3]+primefact(x/3)forainrange(1,int(((x+1)**0.5)/6+1)+1):ifx%(6*a-1)==0:return[6*a-1]+primefact(int(x/(6*a-1)))ifx%(6*a+1)==0:return[6*a+1]+primefact(int(x/(6*a+1)))return[x]forbinrange(0,1+int(log(m,2))):c=str(b)a="a"+cglobals()[a]=[]print("processing%")forainrange(l,m):ifa%(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")foriinrange(0,int(log(m,2))+1):print(eval("len(a"+str(i)+")"))
Variablevalues :
Name of participant
Value of l
Value of m
Siddharth Chakravarty
2×108
5×106+2×108
David Stiff
5×106+2×108
107+2×108
Vinayak Srivastava
107+2×108
5×106+107+2×108
Zakir Husain
5×106+107+2×108
3×107+2×108
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.
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.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
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:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
@Akela Chana , @Jeff Giff , @Aryan Sanghi , @Vinayak Srivastava , @David Stiff , @Siddharth Chakravarty
Keep these up!
I am not joining though!
Announcement: No week will be scheduled till 30 September, 2020.
Log in to reply
From now Pls sir
Log in to reply
Actually I had a lot of work here, that's why these days I'm unable to give time for Brilliant. @SRIJAN Singh
Log in to reply
Announcement : Week 3 shall be rescheduled. Maybe from 4th week of March, 2021.
Log in to reply
Ohk
Announcement: New plan is here, everything is nearly changed now