|
Celebrate the power of AND!
Both you and google ads are getting more annoying!!!!
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
I like to veg out to a mindless game, bubble shooters are a good choice but the ads were so intrusive I had to give them up for MS windows 7 games I managed to find. The last update from MS actually deleted the installed games, now that really annoyed me. Thankfully they were still in my download folder.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Given a number N, let P be the set of all the prime divisors of N. Now, let S be another set of all the divisors of N (including 1 and N). Let's define the term Prime Score of a prime divisor x as the number of elements in S which have x as a prime divisor. Output the product of prime scores of all the elements in P modulo 1000003.
For example, let N be 12. Set P will be {2, 3} and set S will be {1, 2, 3, 4, 6, 12}. Now, 2 is a prime divisor of 4 elements in S (2, 4, 6, 12) and 3 is a prime divisor of 3 elements in S (3, 6, 12). So, the prime scores of 2 and 3 would be 4 and 3. respectively. So. the output will be 4*3 mod 1000003 = 12 .
|
|
|
|
|
Two things:
1) This is the wrong place for such questions, as it explains at the top of the page.
2) While we are more than willing to help those that are stuck: that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.
So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OG: I admire your patience with these kinds of issues!
Get me coffee and no one gets hurt!
|
|
|
|
|
Honestly, I don't think the user deserves patience. They deserve expulsion from their university for academic fraud.
Software Zen: delete this;
|
|
|
|
|
Yes! Which explains why I think OG is very patient. I would not treat them so gently.
Get me coffee and no one gets hurt!
|
|
|
|
|
<snicker> OG has a text file he C&P from for these idjits, minimum effort for max result. Exactly the same response in Q&A.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Sure. Coming right up. My rates are very reasonable.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Go with the proforma!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
If you cannot cope with your programming homework, how can you cope with a programming job?
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
just google it...
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
I managed to optimize the elephant out of my GFX library. The drawing routines use run lengths to plot horizontal and vertical lines instead of pixels at a time for less bus traffic. At the driver level I also cache the address window of the display device for reuse so I don't have to set it every time. I've overclocked the display from 10MHz to 26MHz with no issues, and the thing is just running like a little champ.
The only issue is I'm generating so much bus traffic so quickly that I'm tickling the watchdog timer and making it puke to the serial port. Fortunately this doesn't happen when doing large DMA transfers like bitmaps, or extremely large buffering batches like screen fills.
Still, I've managed to impress myself, and I don't impress easily. This library smokes on an ESP32. It's ridiculous.
Here's the video of my mess. Ahh wow draw::bitmap_async<>() is just hot! Asynchronous DMA transfer goodness! That's how I'm doing full frame animation on this little monster:
latest gfx on an esp32 w ili9341 display - YouTube[^]
++frame;
for (int y=0; y<240; y+=PARALLEL_LINES) {
pretty_effect_calc_lines(lines[calc_line], y, frame, PARALLEL_LINES);
if(-1!=sending_line)
draw::wait_all_async(lcd);
sending_line=calc_line;
calc_line=(calc_line==1)?0:1;
const lines_bmp_type& sending_bmp = line_bmps[sending_line];
rect16 src_bounds = sending_bmp.bounds();
draw::bitmap_async(lcd,(srect16)src_bounds.offset(0,y),sending_bmp,src_bounds);
}
Real programmers use butterflies
|
|
|
|
|
Congrats! It is always a good feeling when you have a break-through on difficult stuff.
This week I discovered how to use a SQL CTE (common table expression) to do a multicolumn-multivalue update (based upon values in another column).
That's some freaking Rocket-Science right there.
|
|
|
|
|
yay us!
Real programmers use butterflies
|
|
|
|
|
This is a fantastic video. It's a bit long but it shows how this independent inventor/creator created a pool stick that can take your pool shots for you. Really great!
He also exposes the struggles he goes through and how he "shot himself in the foot" by leaving dead-wood test code in his program. Who hasn't!?
Automatic pool stick vs. strangers - YouTube[^]
|
|
|
|
|
|
Would German cats fly Meowsserschmitts?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You gato know they carry Mauser side-arms, if you Katze my drift.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
modified 7-May-21 10:58am.
|
|
|
|
|
If they were Aristocats,they'd fly Junkers.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Ja! Und he takes orders from der Fur-her!
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Have you ever met a female cat who wasn't the boss lady?
At one point we had three females at once, which meant frequent, er, precedence issues.
Software Zen: delete this;
|
|
|
|
|
The engines would purr as well.
|
|
|
|
|
Alternative spelling: Mouserschmitts
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
And cat/dog fight with a Focke-Wulf!
|
|
|
|