Skip to content

Instantly share code, notes, and snippets.

View Bojne's full-sized avatar

Aaron (Yueh-Han) Huang Bojne

View GitHub Profile
@Bojne
Bojne / prime.py
Last active June 11, 2016 12:58
#找到兩百萬以下所有質數的和
def prime_num_list(max_num):
x = 2 #最小的質數
prime = [2]
checkNum = None #用於檢測是不是質數,如果是 = True
while x < max_num:
checkNum = True
#檢查每個質數表裡的數,如果都不是表裡的倍數,x就是質數
for prime_num in prime:
if x % prime_num == 0: #發現x可被某數整除,不是質數
checkNum = False
# Week12_log
*I learn a language called MarkDown and parcticing it now.*
### Mon / Science Maker (Co-teacher?)
- *"It's Monday again..."* I thought. It's been one week past since last science-maker class. Once again, I didn't prepare for the class as I should.
- We already tought two-third of the semester. But I feel that we're not controling the class. Are we going to teach them Math, Physics and English? Are the be able to learn the comtent in the way we tought? How can we make the class interesting and still contents some knowledge?
- Bernard is the real teacher anyway, I shouldn't lead the class to much.
- During the class this week, I'm annoyed by the people, not really angry with them, but it's becasue we didn't set the class well.
- I know that if I just let the class go, things will still be fine. But I beliveve that I can improve the class, and I want to do it...
- Any advice? Perhaps add some out-door class instead of sitting in the classroom for two hours, or have individual time to people who

Week12_log

I learned a language called MarkDown and parcticing it now.

Mon / Science Maker (Co-teacher?)

  • "It's Monday again..." I thought. It's been one week past since last science-maker class. Once again, I didn't prepare for the class as I should.
  • We already tought two-third of the semester. But I feel that we're not controling the class. Are we going to teach them Math, Physics and English? Are the be able to learn the comtent in the way we tought? How can we make the class interesting and still contents some knowledge?
  • Bernard is the real teacher anyway, I shouldn't lead the class to much.
  • During the class this week, I'm annoyed by the people, not really angry with them, but it's becasue we didn't set the class well.
  • I know that if I just let the class go, things will still be fine. But I beliveve that I can improve the class, and I want to do it...
  • Any advice? Perhaps add some out-door class instead of sitting in the classroom for two hours, or have individual time to people w
@Bojne
Bojne / test.c
Created November 8, 2015 15:55
同學的程式
#include<iostream>
#include<cstdlib>
#include<stdio.h>
#include<conio.h>
#include<time.h>
using namespace std;
int main()
{
int monlife[5];
int action, target;
#include "stdio.h"
int main(void) {
int leap_year(int y)
{
int is_leap;
is_leap = (y % 400 == 0) ||
((y % 4 == 0) && !(y % 100 == 0));
return is_leap;
}